Expand description
JSON parse/stringify builtins for CJC values. Hand-rolled JSON parser and emitter for CJC.
Design decisions:
- Uses
BTreeMapfor object keys → deterministic, sorted output - No external dependencies (no serde)
- Converts JSON ↔ CJC
Valuedirectly - Strings always use
\uXXXXescaping for non-ASCII in output
Enums§
- Json
Value - A JSON value, using BTreeMap for deterministic key ordering.
Functions§
- json_
parse - Parse a JSON string into a CJC
Value. - json_
stringify - Convert a CJC
Valueto a JSON string with sorted keys.