class documentation
class NestedTextToJSON(_NestedTextToTypedFormat, _NestedTextToTypedFormatSupportNull): (source)
Read NestedText and output its content as JSON.
By default, generated JSON values will only contain strings, arrays, and maps, but you can cast nodes matching YAML Paths to boolean, null, or number.
Casting switches may be before or after file arguments.
Examples
nt2json config.nt >config.json cat config.nt | nt2json nt2json --schema config.types.nt config.nt >config.json nt2json --int stats.total --boolean config.enabled data.nt
Method | main |
Undocumented |
Instance Variable | bool |
Undocumented |
Instance Variable | null |
Undocumented |
Instance Variable | num |
Undocumented |
Inherited from _NestedTextToTypedFormat
:
Class Variable | schema |
Undocumented |
Inherited from _ColorApp
(via _NestedTextToTypedFormat
, _NestedTextToTypedFormatSupportNull
):
Constant | ALLOW |
Undocumented |
Constant | COLOR |
Undocumented |
Constant | VERSION |
Undocumented |