|
4 | 4 | [](https://ci.appveyor.com/project/dbohdan/remarshal) |
5 | 5 |
|
6 | 6 | Convert between TOML, YAML, and JSON. When installed provides the |
7 | | -command line commands `toml2yaml`, `toml2json`, `yaml2toml`, `yaml2json`. |
8 | | -`json2toml` and `json2yaml` for format conversion as well as `toml2toml`, |
9 | | -`yaml2yaml` and `json2json` for reformatting and error detection. Remarshal |
10 | | -currently supports TOML 0.4.0. |
| 7 | +command line commands `toml2yaml`, `toml2json`, `yaml2toml`, `yaml2json`, |
| 8 | +`json2toml`, and `json2yaml` for format conversion as well as `toml2toml`, |
| 9 | +`yaml2yaml`, and `json2json` for reformatting and error detection. |
| 10 | +Remarshal currently supports TOML 0.4.0. |
11 | 11 |
|
12 | 12 | ## Installation |
13 | 13 |
|
@@ -74,8 +74,8 @@ string the result of the conversion is written to the standard output. |
74 | 74 | ### Wrappers |
75 | 75 |
|
76 | 76 | The arguments `--wrap` and `--unwrap` are there to solve the problem of |
77 | | -converting JSON and YAML data to TOML if the topmost element of that data is not |
78 | | -of a dictionary type (i.e., not an object in JSON or an associative array in |
| 77 | +converting JSON and YAML data to TOML if the top-level element of that data is |
| 78 | +not of a dictionary type (i.e., not an object in JSON or an associative array in |
79 | 79 | YAML) but a list, a string, or a number. Such data can not be represented as |
80 | 80 | TOML directly; it needs to wrapped in a dictionary first. Passing the flag |
81 | 81 | `--wrap someKey` to `remarshal` or one of its short commands wraps the input |
@@ -155,8 +155,8 @@ servers: |
155 | 155 | ip: 10.0.0.2 |
156 | 156 | title: TOML Example |
157 | 157 |
|
158 | | -$ curl -s http://api.openweathermap.org/data/2.5/weather\?q\=Kiev,ua | \ |
159 | | -./remarshal.py --if json --of toml |
| 158 | +$ curl -s http://api.openweathermap.org/data/2.5/weather\?q\=Kiev,ua \ |
| 159 | + | ./remarshal.py --if json --of toml |
160 | 160 | base = "cmc stations" |
161 | 161 | cod = 200 |
162 | 162 | dt = 1412532000 |
|
0 commit comments