1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
#name: JSON
#evalPartial
-- in.cue --
a="a": 3
b: a
o: {"a\nb": 2} // TODO: use $ for root?
c: o["a\nb"]
-- out/def --
a: 3
b: 3
o: {
"a\nb": 2
}
c: 2
-- out/export --
a: 3
b: 3
o: {
"a\nb": 2
}
c: 2
-- out/yaml --
a: 3
b: 3
o:
? |-
a
b
: 2
c: 2
-- out/json --
{"a":3,"b":3,"o":{"a\nb":2},"c":2}
-- out/legacy-debug --
<0>{a: 3, b: 3, o: <1>{"a\nb": 2}, c: 2}
-- out/compile --
--- in.cue
{
a: 3
b: ć0;ać
o: {
"a\nb": 2
}
c: ć0;oć["a\nb"]
}
-- out/eval/stats --
Leaks: 0
Freed: 6
Reused: 3
Allocs: 3
Retain: 0
Unifications: 6
Conjuncts: 8
Disjuncts: 6
-- out/eval --
(struct){
a: (int){ 3 }
b: (int){ 3 }
o: (struct){
"a\nb": (int){ 2 }
}
c: (int){ 2 }
}
|