LMSouq
server-admin Open

How to see a large JSON file pretty printed on Ubuntu?

JJ
JJD
1 month ago
3 views
Problem Description
I would like to hear your suggestions on how to handle a large (40MB) JSON file on Ubuntu. I would like to see it pretty printed in *vim* or *gedit* or any other editor. One can find numerious tutorials on how to [prettify the JSON](http://thinkwhere.wordpress.com/2011/06/23/json-prettifier-for-gedit/), however, they do not have to deal with large input. I also imagine I could pipe the data through [pygments][1] or any other syntax highlighter. I am curious to hearing your ideas. Example download: wget -O large-dataset.json http://data.wien.gv.at/daten/wfs?service=WFS&request=GetFeature&version=1.1.0&typeName=ogdwien:BAUMOGD&srsName=EPSG:4326&outputFormat=json Please mind the download size! ---------- **EDIT:** I found out that [meld][2] is working somewhat. The application does not load the whole file at once which would block the user interface. Instead it sequentially reads the file content. [1]: http://pygments.org/ [2]: http://meldmerge.org/

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base