Option to make JSON files friendlier for diffing

Description of the Feature:
This option would, instead of writing all the commands in an event to one line, write them out one per line.

Why is this feature good?
I use version control with my projects, and it seems most software is not very good at handling diffing of long lines. In the least, it makes changes very hard to locate. This is important when I'm doing refactoring, because I want to make sure I didn't change something I shouldn't have.

(Currently I have a program to extract and linearize all the commands in my maps, so at least I could diff with those for now, but I really rather be able to see proper diffs on GitLab.)

Possible issues with this feature?
Larger file size, but that could be optimized away when packaging for distribution.
I'm not sure I can second that. Text editors tend to freeze when you open a file with 30 thousand lines. For some reason I always find it easier to open files when they are on one line than when they are spreaded out. But I agree it would allow for easier editing.
I don't really intend on opening the file in a text editor. Mostly I just want to check the changes in a Git interface, which will collapse the file down enough to show just changes. My text editor has troubles with long lines, and if you ask it to diff a long line it also takes forever.

BTW, looking at the linearized file I have, the entire game with 250 maps gets changed into 48k lines. It'll be much more manageable with single map files.
BTW, looking at the linearized file I have, the entire game with 250 maps gets changed into 48k lines. It'll be much more manageable with single map files.
You're right. In that case I am upvoting it, since this way it will be much easier to edit as well.
I voted Yes, but not important. It sounds like a good idea, but I don't think I would use it myself.
Text editors tend to freeze when you open a file with 30 thousand lines.
Notepad++ and other variants should be fine. At one of my previous jobs, we had generated log files with over a million lines that regular Notepad wouldn't open but Notepad++ would open just fine.

I do support multi line json files
Notepad++ and other variants should be fine. At one of my previous jobs, we had generated log files with over a million lines that regular Notepad wouldn't open but Notepad++ would open just fine.

I do support multi line json files
Cool. I didn't know that.
Me neither. I don't like Notepad++ due to issues I've been having with working with it (for example the fact that I can't hold my folders in a "convenient place" to allow easy and quick file open as well as the bright background and text colouring being kind of too hard for me to read), but if notepad++ doesn't get scared of even huge files, then it might be a viable alternative for these huge files 😀
I use Sublime 2 that is great, but freezes until it finishes text colouring. I used to use VSCode, but have ceased to use it, because it's just too NGGGGH that I want to scroll only one page down upon clicking on the sidebar, but it scrolls to the place.
But even PSPad, the most lightweight text editor I've ever seen, has problems with huge text files.

Original thread: https://forums.rpgmakerweb.com/threads/option-to-make-json-files-friendlier-for-diffing.91651/