Value type
Consider the example input YAML file:
The type option will print the JSON value type, for example:
Outputs:
Or:
Outputs:
Using --output-type the printed type changes. Available types include YAML, JSON (default), TOML, XML, and python.
Depending on this type, the value could be:
| Python | YAML | JSON | TOML | XML |
|---|---|---|---|---|
| str | str | string | String | xs:string |
| int | int | number | Integer | xs:integer |
| float | float | number | Float | xs:decimal |
| bool | boolean | boolean | Boolean | xs:boolean |
| list | seq | array | Array | xs:sequence |
| dict | map | object | Key/Value | xs:complexType |
| bytes | binary | |||
| * | Python | object | Other | xs:any |
Examples:
Prints: