Utility to sort JSON files
- sorts JSON files, JSON keys in ASC, in recursive way.
How to use
node index.js <Input-JSON-FILE> <OUTPUT-JSON-FILE>
Parameters
Input-JSON-FILE
, i.e. myFile.json
File to be sorted. Required.
OUTPUT-JSON-FILE
Output file, sorted input file. Optional. If no value provided output file name will have same name as Input-JSON-FILE with suffix _sorted
, i.e myFile_sorted.json
References
Project based on awsome json-keys-sort.