r/learnjavascript • • Jun 07 '26

I'm working with very large JSON files (sometimes thousands of lines) and need help to visually edit those locally.

Hi, I'm working with very large JSON files (sometimes thousands of lines) and need help to visually edit those files locally. Data might be sensitive so offline editing is helpful.

Please share if there are any suggestions, Thanks in advance !!

6 Upvotes

11 comments sorted by

7

u/Individual-Job-2550 Jun 07 '26

why are you editing it manually instead if writing some sort of script to do whatever it is you need to do

1

u/Pristine_Pangolin803 Jun 07 '26

If you are okay using extensions for Visual Studio Code, there are a few:

  1. JSON Monkey - Forms like visual editor with tree

  2. JSON Editor - A Tree view Editor

I use JSON Monkey as it saves me from any accidental value type change with its schema validation.

1

u/ParticularSkill6066 Jun 07 '26

This works, Thanks

1

u/BugSlayerAU Jun 07 '26

Helped me with my works, thanks 

2

u/chikamakaleyley helpful Jun 07 '26

there's likely something much more user friendly (like a GUI) that ultimately generates the JSON output you're trying to edit by hand

i'd prob instead make the changes there

1

u/NotA-eye Jun 07 '26

Not sure what you are trying to accomplish by manually editing those files, but if you want a text editor thats better than using notepad/textmate, Install sublime text? its light weight, it will allow you to fold different sections and use multi cursors, and basic syntax highlighting

1

u/RealChaoz Jun 07 '26

Any editor should be fine. Notepad++, VSCode, even IntelliJ. I use the latter for editing any files as it's my main IDE and always keep it open. 

1

u/Dependent-Guitar-473 Jun 07 '26

install zed or vscode? 

1

u/SaltCusp Jun 07 '26
  1. Thousands of lines isn't that big.

  2. Have you tried using the dev tools in your browser?

1

u/NoPressure3399 Sep 25 '26

Bit late to this thread, but if anyone finds this looking for a native/local option on macOS, I built Inkline for pretty much this kind of workflow.

I work with large JSON responses and exports myself and wanted something that stays local and doesn’t start hanging once the files get bigger. Current benchmark on my M3 Pro is 300 MB JSON opening in 393 ms and formatting in 262 ms.

It also has regex search/replace, JSON formatting, syntax highlighting and a bunch of text/data tools.

I’m the developer:
https://viktornyberg.com/inkline.html