github.com/solo-io/cue@v0.4.7/cue/testdata/resolve/005_JSON.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: JSON
     4  #evalPartial
     5  -- in.cue --
     6  a="a": 3
     7  b:     a
     8  o: {"a\nb": 2} // TODO: use $ for root?
     9  c: o["a\nb"]
    10  -- out/def --
    11  a: 3
    12  b: 3
    13  o: {
    14  	"a\nb": 2
    15  }
    16  c: 2
    17  -- out/export --
    18  a: 3
    19  b: 3
    20  o: {
    21  	"a\nb": 2
    22  }
    23  c: 2
    24  -- out/yaml --
    25  a: 3
    26  b: 3
    27  o:
    28    ? |-
    29      a
    30      b
    31    : 2
    32  c: 2
    33  -- out/json --
    34  {"a":3,"b":3,"o":{"a\nb":2},"c":2}
    35  -- out/legacy-debug --
    36  <0>{a: 3, b: 3, o: <1>{"a\nb": 2}, c: 2}
    37  -- out/compile --
    38  --- in.cue
    39  {
    40    a: 3
    41    b: 怈0;a怉
    42    o: {
    43      "a\nb": 2
    44    }
    45    c: 怈0;o怉["a\nb"]
    46  }
    47  -- out/eval --
    48  (struct){
    49    a: (int){ 3 }
    50    b: (int){ 3 }
    51    o: (struct){
    52      "a\nb": (int){ 2 }
    53    }
    54    c: (int){ 2 }
    55  }