Commit Graph

36 Commits

Author SHA1 Message Date
Zahary Karadjov 1dccd4b2ef
Another readObjectFields convenience helper 2020-08-02 20:15:44 +03:00
Zahary Karadjov ec374f26ca
Break reader.readObject into smaller reusable pieces 2020-08-02 13:22:24 +03:00
Zahary Karadjov 9ca88fdcd4
Turn a potential assertion failure into a syntax error 2020-08-01 19:28:36 +03:00
Zahary Karadjov d5eb9427b8
Serialization of JsonNode fields 2020-07-24 23:16:35 +03:00
Zahary Karadjov 25adda6f3f
Alternative implementation that doesn't require rewind points 2020-07-21 22:09:38 +03:00
Zahary Karadjov 4d8145c67b
WIP Deserialization of the JsonString literal fields 2020-07-17 23:58:02 +03:00
Zahary Karadjov 1cf51931f1
Implement forward-compatible deserialization 2020-06-30 22:11:56 +03:00
Zahary Karadjov 463a0cf1b7
Address review comments; Passing test suite 2020-06-22 17:42:50 +03:00
Zahary Karadjov 6e92113a06
Stricter error handling 2020-06-16 01:03:00 +03:00
Zahary Karadjov 8d4c31f7c2
Allow custom serializers to report unexpected values in the Json file 2020-05-30 22:40:17 +03:00
Zahary Karadjov 2f5e71b25f
Use the latest FastStreams API 2020-05-13 11:43:52 +03:00
Jacek Sieka cb695d175f reader support for stringlikes 2020-04-29 19:37:34 +03:00
Zahary Karadjov bed0e403a4
Add support for not nil ref types 2020-04-23 01:39:56 +03:00
Zahary Karadjov a8c5604808
Stop using the AsciiStream flavour 2020-04-13 17:01:49 +03:00
Zahary Karadjov 16931f4fa3
Use the improved InputStream API 2020-04-10 16:46:12 +03:00
Zahary Karadjov 6e9d69dafb
Handle int overflows better; Support Nim 1.2 2020-03-25 18:43:49 +02:00
Zahary Karadjov 88b79e2300
Remove warnings in Nim 1.0.2 2019-11-04 18:42:34 +00:00
Zahary Karadjov f4bd22e054 Support for tuples 2019-08-14 16:18:42 +02:00
Alexander Ivanov e49b8bdb43 Implement support for normal and ordered tables 2019-08-02 13:33:44 +03:00
Zahary Karadjov 997ae368a5
Add a test case for case objects 2019-08-01 17:12:31 +03:00
Zahary Karadjov 0c12b0f42d
In error messages, display the start position of strings instead of the end pos 2019-07-21 17:12:48 +03:00
Zahary Karadjov 95bdb8acc1
Export more procs useful in low-level deserializers 2019-07-19 02:01:34 +03:00
Zahary Karadjov 73d9e0d458
Handle changes in the serialization APIs 2019-07-18 21:20:17 +03:00
Zahary Karadjov 7922a83c4d
Serialization for sets 2019-07-16 13:20:05 +03:00
Jacek Sieka e127b49cd4
fix typo 2019-06-28 09:50:51 +02:00
Zahary Karadjov 9d909d352a Add support and tests for Option and reference types 2019-06-24 17:38:37 +03:00
Mamy André-Ratsimbazafy f3d8f822bd
Handle reserved keyword `type` as field name 2019-05-28 17:42:18 +02:00
Mamy André-Ratsimbazafy 3cb55e7057
Print custom exception names 2019-03-29 13:49:47 +01:00
Zahary Karadjov 40de103278 Detect the precide field with failing custom serialization 2019-03-20 03:17:41 +02:00
Zahary Karadjov c2daa5a23c Improved error handling and pretty-printing for arrays 2019-03-20 01:54:16 +02:00
Ștefan Talpalaru 002c6bbb38
assert() -> doAssert()
and an explicit "test" task for the sake of nimble.sh
2019-03-14 00:39:10 +01:00
Zahary Karadjov 49c07ca512 Handle the latest OutputStream changes 2019-03-11 11:39:19 +02:00
Zahary Karadjov edda2577a3 Handle large unsigned values and add Portable JsonMode in the Lexer 2019-01-21 19:40:14 +02:00
Zahary Karadjov daa60be371 Handle objects without fields gracefully 2018-12-28 03:02:20 +02:00
Zahary Karadjov 6d3fae7df2 Json deserialisation; Tests 2018-12-19 12:47:53 +02:00
Zahary Karadjov 4728844a32 Initial JSON serializer 2018-11-10 02:16:09 +02:00