Explore JSON files in CLI.
Use npm to install browsejson
npm install -g browsejson
Use yarn to install browsejson
yarn global add browsejson
browsejson [filepath]
If browsejson isn't a global package(not used -g flag) then use,
npx browsejson [filepath]
Replace [filepath] with file you want to open with browsejson.
help
print
print keys
print keys pass
where [key] is key of JSON array.
list all [key]
clipboard stores results of previous operations
print clipboard
write clipboard results to file.
save clipboard [filepath]
navigate in JSON file.
cd [key]
navigate multiple key at a time
cd [key1>key2>key3]
navigate back
cd ..
write existing key with new value or create new key and value.
set key_value [key] {value}
remove key and value if exist.
remove [key]
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.