I have tried making a "bypass" context that is literally a copy of default_parse_context with prints added and it seems to show the same error as the above one when called, strangely enough, the default_parse_context works fine again.
Another weird thing I find with the streaming example is that it shows that it inherits from picojson::deny_parse_context but none of its methods are ever declared as virtual.
Please ignore this, I did a straight copy of the streaming example which can leave things in a "bad" state but after implementing all methods and "consuming" the remaining bits that needed to be read it works well.
Hi there,
I seem to be having some issues when trying to create parsing contexts and I was wondering what I might be missing.
This is my input data:
I seem to get this error message when trying to parse it using a custom parsing context class, err is filled with:
syntax error at line 1 near: {
The class I'm using is pretty much copied from the streaming example:
I have tried making a "bypass" context that is literally a copy of default_parse_context with prints added and it seems to show the same error as the above one when called, strangely enough, the default_parse_context works fine again.
What am I missing?
Another weird thing I find with the streaming example is that it shows that it inherits from picojson::deny_parse_context but none of its methods are ever declared as virtual.