Simple Feature Request: Pretty-Print JSON For Easier Source Control

The JSON files RPG Maker generates are almost perfect for source control in something like Git – they're plaintext and easy to understand.

The only problem is they're minified JSON so everything is on one line, which makes source control difficult.

Source control is so important for large complicated projects like games. It's useful for both one person and multiple contributors. This really quick change would be a night-and-day difference.

Hopefully it's a very minor change that can be added without breaking anything.

I work around this by running the following Ruby script before committing (works on Mac OS X and Linux only):

#!/usr/bin/env rubyrequire 'json'Dir.glob("./**/*.json").each do |path| txt = File.read(path) struct = JSON.parse(txt) File.write(path, JSON.pretty_generate(struct))endWith this, my diffs all look great and they're really easy to understand:

Screen Shot 2015-12-27 at 3.37.29 AM.png

Would love for this to get added!

Original thread: https://forums.rpgmakerweb.com/threads/simple-feature-request-pretty-print-json-for-easier-source-control.53773/