The Lotus Script class for reading and writing JSON is that easy. There are not many examples and some functionality is missing.
JSON can be either condensed without any new lines and indentation.
That's great when you use it for back-end processing or REST services.
Why is pretty printing important
But in some cases you need pretty formatted JSON. Specially when you want to maintain it manually and extend it. For example for Domino OTS JSON files :-)
When you use JSON based configuration pretty printed JSON is very helpful.
Condensed JSON is also difficult to check into Git.
Everything looks modified when it is a single line.
This is a companion discussion topic for the original entry at https://blog.nashcom.de/nashcomblog.nsf/dx/pretty-printing-json-in-notes-client-and-domino.htm