On first look? If that works it is like it should be done!
I have been using my own json parser for a longloooooong time because everything json tends to be waywaaaaaaaaaaaaaaaaay over complicated and codebloated for such a simple syntax.
I will definitely try to shoot holes in it.
Tnx. I'll be back with some test results on complex (strict) json.
For the other json parsers: if this works: thanks but no thanks. It hurts my eyes and the intention of json.
What do you think of fpjsonparser & how does it compare to your own parser?
JD
Actually pretty well. The scanner and parser are lightweight, though not as lightweight as proposed here.
Also: complexity for things that can be build on top of json are in separate units and not in the same unit or even in the same set of classes (mOrmot json overbloat).
Structurally it is very sound.