Main problem is when the JSON is all on a single line. Use jq to format it first, then open that: jq . < bigline.json > formatted.json. For me, this solved the problem in most editors.
Dadroit is a brilliant tool that treats JSON as a data format, not plain text. It provides you with a quick outline view with the help of tree representation of JSON data from root to last nodes. You can browse and query JSON like an enterprise DBMS. You can get it here dadroit.com
I haven't done much empirical testing, but in my experience, Sublime seems to struggle with minified files. It handles large files with many reasonably short lines passably, but it chokes on a 50 MB JSON one-liner.
In my experience, Sublime has to chug for a while before it can finally open large files. I just opened a 50MB JSON file in Sublime and it took several minutes before the file appeared in the editor.
Dadroit is a brilliant tool that treats JSON as a data format, not plain text. It provides you with a quick outline view with the help of tree representation of JSON data from root to last nodes. You can browse and query JSON like an enterprise DBMS. You can get it here dadroit.com
Unpopular solution but Works like charm : Try out nano if you are using Linux. It will read only that part of the file which is displayed on the terminal. Loads super fast!! and does not blow up memory requirement. If you are good at python just use file.read() option to parse only that part you need Unpopular solution but Works like charm : Try out nano if you are using Linux. It will read only that part of the file which is displayed on the terminal. Loads super fast!! and does not blow up memory requirement. If you are good at python just use file.read() option to parse only
Just tried it and it is decades away from "fast". Honestly, after 15 minutes of waiting I believe it entirely froze to death. My test scenario: HP Elitebook 745 G2 with Win 10 Pro and 4GB DDR3, SSD HDD (1TB) - Notepad++ opened it way faster. Everything was shown in one row only but it did the job in my case as I only needed to search for a contained string. Maybe this comment saves somebody some time.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
jq . < bigline.json > formatted.json
. For me, this solved the problem in most editors.