Re: [fpc-pascal] JSON SAX-based reader

2017-06-24 Thread Michael Van Canneyt
On Fri, 23 Jun 2017, Stefan V. Pantazi wrote: Thank you for this, Michael. I think it is wonderful work. I've done some old tests of the new implementation and it looks very good. The only failed tests were related to date and time representation. This appears to be fixed in the new

Re: [fpc-pascal] JSON SAX-based reader

2017-06-23 Thread Stefan V. Pantazi
Thank you for this, Michael. I think it is wonderful work. I've done some old tests of the new implementation and it looks very good. The only failed tests were related to date and time representation. This appears to be fixed in the new version. Most importantly, I see no memory leaks when

Re: [fpc-pascal] JSON SAX-based reader

2017-06-23 Thread Michael Van Canneyt
On Fri, 23 Jun 2017, Benito van der Zander wrote: Hi, Useful if you want to process large amounts of JSON data without building the whole JSON document in memory. I have always used jsonscanner for that... Well, JSONScanner does not do structural JSON validation. JSONReader does.

[fpc-pascal] JSON SAX-based reader

2017-06-23 Thread Michael Van Canneyt
Hello, I have changed the JSON parser, it is now written on top of a SAX-like JSON reader (which is available separately). All unit tests work fine, and the few extra tests which I did also, but I would like to hear if someone has code that no longer works. The change is committed in trunk.