JSON5toJSON
A small command line tool to convert JSON5 to JSON. Runs on macOS 12 (Monterey).
Installation
Install using Mint.
$ mint install auramagi/json5tojson
Usage
-
Convert JSON5 file and print to standard output
$ json5tojson INPUT.json5
-
Convert JSON5 file and write output to another file
$ json5tojson INPUT.json5 OUTPUT.json
-
Same, but with pretty printing
$ json5tojson -p INPUT.json5 OUTPUT.json
Run json5tojson --help
to see all options.
Limitations
Positive/negative inifinity and NaN cannot be represented in JSON and will throw an error if present in the input file.