A literal that looks like an alias
A v4 value file with three inputs of type F whose body is the string literal {"$name":"a"}. In the plain document
the literal is the JSON string "{\"$name\":\"a\"}".
Occurrences in first-use order. body (the literal is not a position), inputTypes, outputType, then name.
- F (
fqNames) atinputTypes/base,inputTypes/bonusandinputTypes/rebate, O = 101 each. Ida: S = 264 > E = 106: aliased asa, the very id the literal spells. morphir/SDK:string#string(fqNames) atoutputType, O = 27, once. Tentative idb: S = 14; E = 1 + 25 + 6 = 32. Spelled out.label(names) atname, O = 7, once: spelled out.
The literal stays a string, written with its quotes escaped as RFC 8785 escapes them,
"{\"$name\":\"a\"}", and it never expands.
Loss decision. Overhead = 118 + 12 + 105 + 0 = 235. Savings 264 > 235, so the envelope is written, 29 bytes smaller: 522 bytes plain, 493 bytes compacted.