A serialized reference object is a JSON object shaped like { refId: <ID> }. It represents an AST reference relation without embedding the target object, allowing cyclic relations to cross a JSON boundary. section 7.3 section 7.6
Deserialization resolves these objects through a staged transformation:
- Record unresolved reference IDs, then replace each placeholder with { ref: <target AST object> } after all objects are available. section 7.3
- Preserve an unselected reference target by converting { refId: undefined } into { ref: undefined }. section 7.3
Resolving an attribute reference
A serialized Attribute Reference can contain { refId: "SlLaELvAy0" }, while the lookup table maps that ID to the Data Attribute object named “rental price before discount.” Deserialization restores the relation as a JavaScript object reference.
