3 ms·
jq looks promising but I still need to view the JSON file first. I want to be able to somehow get the general understanding of the structure very quickly and in
by chuchuva 10y ago
jq looks promising but I still need to view the JSON file first. I want to be able to somehow get the general understanding of the structure very quickly and interactively. The tree control works very well for that. JSON Viewer is almost perfect but it doesn't work with local files.
- bsg75 10y agojq . file.json | less
- bsg75 10y agojq . file.json | less or curl ... | jq . | less
- dwaltrip 10y agoJSON Formatter for Chrome works with local files (you have to check the box in the settings to enable it). It's super handy. Drag and drop json files into a new tab. Link: https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=en https://chrome.google.com/webstore/detail/json-formatter/bcj...
- slapresta 10y agoI usually use jq to understand the structure of the file. `keys` will get you all the key names in an object; `with_entries(.value |= type)` will replace each element on an object with its type. You can quickly delve into a JSON and gain some understanding of it with jq.