391a364a9f37514fd7e2dcab26e3e0c7a1b00c94
[nit.git] / tests / sav / test_json_deserialization_alt2.res
1 # Nit:
2 <A: true a 0.123 1234 asdf false p4ssw0rd>
3
4 # Json:
5 {"b": true, "c": "a", "f": 0.123, "i": 1234, "serialization_specific_name": "asdf", "n": null}
6
7 # Nit:
8 <B: <A: false b 123.123 2345 hjkl true p4ssw0rd> 1111 qwer>
9
10 # Json:
11 {"b": false, "c": "b", "f": 123.123, "i": 2345, "serialization_specific_name": "hjkl", "n": 12, "ii": 1111, "ss": "qwer"}
12
13 # Nit:
14 <C: <A: true a 0.123 1234 asdf false p4ssw0rd> <B: <A: false b 123.123 2345 hjkl true p4ssw0rd> 1111 qwer>>
15
16 # Json:
17 {"a": {"b": true, "c": "a", "f": 0.123, "i": 1234, "serialization_specific_name": "asdf", "n": null}, "b": {"b": false, "c": "b", "f": 123.123, "i": 2345, "serialization_specific_name": "hjkl", "n": 12, "ii": 1111, "ss": "qwer"}, "aa": {"b": true, "c": "a", "f": 0.123, "i": 1234, "serialization_specific_name": "asdf", "n": null}}
18
19 Serialization warning: Cycle detected in serialized object, replacing reference with 'null'.
20 # Nit:
21 <D: <B: <A: false b 123.123 2345 new line ->
22 <- false p4ssw0rd> 1111         f"\r\/> true>
23
24 # Json:
25 {"b": false, "c": "b", "f": 123.123, "i": 2345, "serialization_specific_name": "new line ->\n<-", "n": null, "ii": 1111, "ss": "\tf\"\r\\/", "d": null}
26
27 # Nit:
28 <E: a: hello, 1234, 123.4; b: hella, 2345, 234.5>
29
30 # Json:
31 {"a": ["hello", 1234, 123.4], "b": ["hella", 2345, 234.5]}
32
33 # Nit:
34 <E: 2222>
35
36 # Json:
37 {"n": 2222}
38
39 # Nit:
40 <E: 33.33>
41
42 # Json:
43 {"n": 33.33}
44
45 # Nit:
46 <G: hs: -1, 0; s: one, two; hm: one. 1, two. 2; am: three. 3, four. 4>
47
48 # Json:
49 {"hs": [-1, 0], "s": ["one", "two"], "hm": {"one": 1, "two": 2}, "am": {"three": "3", "four": "4"}}
50