usage: json5 [options] [FILE] A tool to parse and pretty-print JSON5. Usage: $ echo '{foo:"bar"}' | python -m json5 { foo: 'bar', } $ echo '{foo:"bar"}' | python -m json5 --as-json { "foo": "bar" } positional arguments: FILE optional file to read JSON5 document from; if not specified or "-", will read from stdin instead options: -h, --help show this help message and exit -V, --version show JSON5 library version (0.17.3) -c STR inline json5 string to read instead of reading from a file --as-json output as JSON (same as --quote-keys --no-trailing-commas) --indent INDENT amount to indent each line (default is 4 spaces) --quote-keys quote all object keys --no-quote-keys don't quote object keys that are identifiers (this is the default) --trailing-commas add commas after the last item in multi-line objects and arrays (this is the default) --no-trailing-commas do not add commas after the last item in multi-line lists and objects --strict Do not allow control characters (\x00-\x1f) in strings (default) --no-strict Allow control characters (\x00-\x1f) in strings --quote-style {always_double,always_single,prefer_double,prefer_single} Controls how strings are encoded. By default they are always double-quoted ("always_double")