{"repo":"remarshal-project/remarshal","free":true,"listed":false,"github":"https://github.com/remarshal-project/remarshal","clone":"git clone https://github.com/remarshal-project/remarshal.git","description":"Convert between CBOR, JSON, MessagePack, TOML, and YAML 1.1 & 1.2","language":"Python","stars":551,"topics":["converter","json","toml","yaml","conversion","cli","utility","command-line-tool","msgpack","messagepack"],"license":"MIT","category":"cli-tools","readme_excerpt":"Remarshal Convert between CBOR, JSON, MessagePack, TOML, and YAML. Convert all to Python code. When installed, Remarshal provides the command remarshal as well as short commands like yaml2json . These commands can be used to convert between formats, reformat, and detect errors as well as to transform data with Starlark. Known limitations and quirks YAML versions Remarshal works with YAML 1.2 by default. You can use the format yaml-1.1 to work with YAML 1.1. The format yaml-1.2 can be used to select YAML 1.2 explicitly. Conversion between YAML 1.1 and 1.2 is supported. Lossless by default; lossy must be enabled Remarshal tries to convert documents without losing information by default. This means that a document converted from format A to B and then back to A should be equal to the original document. When a lossless conversion is impossible, Remarshal exits with an error. Use the option -k / --stringify to relax this restriction. It will make Remarshal do the following: - When converting to JSON, turn boolean and null keys and date-time keys and values into strings. - When converting to TOML, turn boolean, date-time, and null keys and null values into strings. This is usually what you want . It isn't the default as a safeguard against information loss. Comments are removed Remarshal does not preserve or convert TOML and YAML comments. Date-time conversion limitations There are limitations on what data can be converted between formats. - CBOR, MessagePack, and YAML with binary ","default_branch":null,"files":null,"tree":[],"storefront":"/r/remarshal-project","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/remarshal-project/remarshal/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}