tests: update expected results of serialization & json tests
[nit.git] / tests / sav / test_json_deserialization_alt4.res
1 # Nit:
2 <A: true a 0.123 1234 asdf false p4ssw0rd>
3
4 # Json:
5 {
6         "b": true,
7         "c": "a",
8         "f": 0.123,
9         "i": 1234,
10         "serialization_specific_name": "asdf",
11         "n": null
12 }
13
14 # Nit:
15 <B: <A: false b 123.123 2345 hjkl true p4ssw0rd> 1111 qwer>
16
17 # Json:
18 {
19         "b": false,
20         "c": "b",
21         "f": 123.123,
22         "i": 2345,
23         "serialization_specific_name": "hjkl",
24         "n": 12,
25         "ii": 1111,
26         "ss": "qwer"
27 }
28
29 # Nit:
30 <C: <A: true a 0.123 1234 asdf false p4ssw0rd> <B: <A: false b 123.123 2345 hjkl true p4ssw0rd> 1111 qwer>>
31
32 # Json:
33 {
34         "a": {
35                 "b": true,
36                 "c": "a",
37                 "f": 0.123,
38                 "i": 1234,
39                 "serialization_specific_name": "asdf",
40                 "n": null
41         },
42         "b": {
43                 "b": false,
44                 "c": "b",
45                 "f": 123.123,
46                 "i": 2345,
47                 "serialization_specific_name": "hjkl",
48                 "n": 12,
49                 "ii": 1111,
50                 "ss": "qwer"
51         },
52         "aa": {
53                 "b": true,
54                 "c": "a",
55                 "f": 0.123,
56                 "i": 1234,
57                 "serialization_specific_name": "asdf",
58                 "n": null
59         }
60 }
61
62 Serialization warning: Cycle detected in serialized object, replacing reference with 'null'.
63 # Nit:
64 <D: <B: <A: false b 123.123 2345 new line ->
65 <- false p4ssw0rd> 1111         f"\r\/> true>
66
67 # Json:
68 {
69         "b": false,
70         "c": "b",
71         "f": 123.123,
72         "i": 2345,
73         "serialization_specific_name": "new line ->\n<-",
74         "n": null,
75         "ii": 1111,
76         "ss": "\tf\"\r\\/",
77         "d": null
78 }
79
80 # Nit:
81 <E: a: hello, 1234, 123.4; b: hella, 2345, 234.5>
82
83 # Json:
84 {
85         "a": ["hello", 1234, 123.4],
86         "b": ["hella", 2345, 234.5]
87 }
88
89 # Nit:
90 <E: 2222>
91
92 # Json:
93 {
94         "n": 2222
95 }
96
97 # Nit:
98 <E: 33.33>
99
100 # Json:
101 {
102         "n": 33.33
103 }
104
105 # Nit:
106 <G: hs: -1, 0; s: one, two; hm: one. 1, two. 2; am: three. 3, four. 4>
107
108 # Json:
109 {
110         "hs": [-1, 0],
111         "s": ["one", "two"],
112         "hm": {
113                 "one": 1,
114                 "two": 2
115         },
116         "am": {
117                 "three": "3",
118                 "four": "4"
119         }
120 }
121