X-Git-Url: http://nitlanguage.org diff --git a/tests/sav/test_json_deserialization_alt2.res b/tests/sav/test_json_deserialization_alt2.res index c4efd5f..896b094 100644 --- a/tests/sav/test_json_deserialization_alt2.res +++ b/tests/sav/test_json_deserialization_alt2.res @@ -2,48 +2,76 @@ # Json: -{"b": true, "c": "a", "f": 0.123, "i": 1234, "s": "asdf", "n": null} +{"b":true,"c":"a","f":0.123,"i":1234,"serialization_specific_name":"asdf","n":null} + +# Back in Nit: + # Nit: 1111 qwer> # Json: -{"b": false, "c": "b", "f": 123.123, "i": 2345, "s": "hjkl", "n": 12, "ii": 1111, "ss": "qwer"} +{"b":false,"c":"b","f":123.123,"i":2345,"serialization_specific_name":"hjkl","n":12,"ii":1111,"ss":"qwer"} + +# Back in Nit: + 1111 qwer> # Nit: 1111 qwer>> # Json: -{"a": {"b": true, "c": "a", "f": 0.123, "i": 1234, "s": "asdf", "n": null}, "b": {"b": false, "c": "b", "f": 123.123, "i": 2345, "s": "hjkl", "n": 12, "ii": 1111, "ss": "qwer"}, "aa": {"b": true, "c": "a", "f": 0.123, "i": 1234, "s": "asdf", "n": null}} +{"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}} +# Back in Nit: + 1111 qwer>> + +Serialization warning: Cycle detected in serialized object, replacing reference with 'null'. # Nit: <- false p4ssw0rd> 1111 f" \/> true> # Json: -{"b": false, "c": "b", "f": 123.123, "i": 2345, "s": "new line ->\n<-", "n": null, "ii": 1111, "ss": "\tf\"\r\\\/", "d": null} +{"b":false,"c":"b","f":123.123,"i":2345,"serialization_specific_name":"new line ->\n<-","n":null,"ii":1111,"ss":"\tf\"\r\\/","d":null} + +# Back in Nit: + +<- false p4ssw0rd> 1111 f" \/> false> # Nit: # Json: -{"a": ["hello", 1234, 123.4], "b": ["hella", 2345, 234.5]} +{"a":["hello",1234,123.4],"b":["hella",2345,234.5]} + +# Back in Nit: + # Nit: - + # Json: -{"n": 2222} +{"n":2222} + +# Back in Nit: + # Nit: - + # Json: -{"n": 33.33} +{"n":33.33} + +# Back in Nit: + # Nit: # Json: -{"hs": [-1, 0], "s": ["one", "two"], "hm": {"one": 1, "two": 2}, "am": {"three": "3", "four": "4"}} +{"hs":[-1,0],"s":["one","two"],"hm":{"one":1,"two":2},"am":{"three":"3","four":"4"}} + +# Back in Nit: + +Deserialization Error: Doesn't know how to deserialize class "Set[String]" +Deserialization Error: Wrong type on `G::s` expected `Set[String]`, got `null`