File: 005_JSON.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,644 kB
  • sloc: makefile: 20; sh: 15
file content (63 lines) | stat: -rw-r--r-- 718 bytes parent folder | download | duplicates (2)
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 }
}