`std.json` refactoring

* fix indention
* put open brackets on its own line
* minor refactoring

Other changes (fixing and formatting support) are excluded from this pull.