class documentation

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 example.nt nt2json <example.nt cat example.nt | nt2json nt2json --int People.age --boolean 'People."is a wizard"' example.nt

Method main Undocumented
Instance Variable bool_paths Undocumented
Instance Variable null_paths Undocumented
Instance Variable num_paths Undocumented

Inherited from _NestedTextToTypedFormat:

Class Variable schema_files Undocumented

Inherited from _ColorApp (via _NestedTextToTypedFormat, _NestedTextToTypedFormatSupportNull):

Constant ALLOW_ABBREV Undocumented
Constant COLOR_GROUPS Undocumented
Constant VERSION Undocumented
def main(self, *input_files: ExistingFile): (source)

Undocumented