Stumbled upon such a problem. Changing the content of the model increases the file size by 6 times. Example:
https://ru.wikipedia.org/w/index.php?title=Модуль:Graph/WorldMap-iso2.json&action=history
This happens because the file is saved with a description of the structure. Everything would be nice, but the file in this form is used in modules. Look at Lua memory usage:
https://de.wikipedia.org/wiki/Benutzer:Iniquity/sandbox.
Current result
When we save the JSON file, the file is saving with a description of the structure (spaces). Unable to change file structure and cannot save file with minified structure.
Expected result
1 variant
The file is always saved in the minified form, but when CodeEditor is enabled, the CodeEditor itself expands it into a readable form.
2 variant
The file structure is not important, but a minified version is always sent to the modules.