Simplify JSON output

Make it readonly, since modifying it doesn't do anything for now
anyways.

Removed auto-fold for `"loc"` entries: We simply strip them when convert
the AST to JSON (that might change again, depending on how we get
printing the AST to work).