Expand description
TLC’s JSON form of values, as written by -dumpTrace json and JsonSerialize.
Port of tlc2.module.Json.getNode (tlaplus 94d0c50) with Gson’s compact
serialization (JsonElement.toString, no HTML escaping):
- records are objects, in field order;
- tuples and sequences (functions with domain
1..n) are arrays; - other functions are objects keyed by the domain element’s TLC string form (a string domain element without quotes);
- finite sets are arrays in normalized order (intervals and other lazy sets are enumerated);
- strings and model values are JSON strings, integers numbers, booleans booleans.
Functions§
- json_
string - Gson’s string escaping (
JsonWriter.stringwithout HTML-safe mode). - to_
tlc_ json - The JSON text TLC writes for a value.