Script JSON Format

I do think IA should route all JSONification through instances of TreeMap with a human- and source-control-friendly case-sensitive alphanumeric comparator for the keys. Perhaps with an performance exception for payloads going straight to the browser.

Especially including system.util.jsonEncode(). So that all json that ends up on disk (including json from document or other tags) is deterministic.

The JSON spec may not care about key order, but lots of other dependent functionality does.

4 Likes