[1] https://jsonviewer.codeplex.com/
Ask HN: How do you view large JSON files?
1–10 of 60 posts
I use JSON Viewer [1] to view data in JSON format but it freezes on files larger than 1 MB. I want to be able to easily collapse and expand elements to understand the structure of the data.
Re: Ask HN: How do you view large JSON files?
#2jq
Re: Ask HN: How do you view large JSON files?
#3There's addons/extension for Chrome and Firefox. Both also called JSON Viewer (different author).
For really large files I use a command-line tool plus grep and awk though https://stedolan.github.io/jq/
Re: Ask HN: How do you view large JSON files?
#4You could try the JSONView chrome extension.
Re: Ask HN: How do you view large JSON files?
#5You could try the JSONView chrome extension.
Re: Ask HN: How do you view large JSON files?
#6You could try the JSONView chrome extension.
I'm already using JSONView Chrome extension and it's great but it doesn't work with local files. Nor can I copy and paste JSON.
Re: Ask HN: How do you view large JSON files?
#7There's addons/extension for Chrome and Firefox. Both also called JSON Viewer (different author). For really large files I use a command-line tool plus grep and awk though https://stedolan.github.io/jq/
Yep, all that above + `sed`.
Re: Ask HN: How do you view large JSON files?
#8print_r(json_decode(file_get_contents("http://url.com/"), TRUE));
Re: Ask HN: How do you view large JSON files?
#9print_r(json_decode(file_get_contents(" http://url.com/" ), TRUE));
What about collapsing/expanding elements interactively?
Re: Ask HN: How do you view large JSON files?
#10There's addons/extension for Chrome and Firefox. Both also called JSON Viewer (different author). For really large files I use a command-line tool plus grep and awk though https://stedolan.github.io/jq/
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.