-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JsonReaderException when parsing other JSON within scanValuesFromStream #923
Comments
Hi, @ski309 ! All Please try re-entrant ones for your case. Yet another option is using own instances of |
I see... I hadn't noticed those methods. Are there any plans to introduce reentrant methods for byte arrays or input streams? Also, are there any plans to allow access to create our own |
I guess I should clarify that my example was simplified. What actually happened in my case was that, within |
In any case, thank you for your help! |
Reentrant methods are much expensive to make them used widely. Probably having some additional constructors from runtime configuration will allow to use CPU and memory resources more efficiently with caching them by users. |
@ski309 A good option for the |
@plokhotnyuk I think having to pass messages to a different thread would reduce performance in a hot path in my code. For now, I've switched the JSON parsing within the callback back to Jackson, as it was beforehand. In the future, I might remove the call to One other suggestion would be to mention in the Thanks for your help! |
@ski309 Please peek the latest v2.14.0 release and try |
@plokhotnyuk Works great! Thank you Andriy! |
Hello, I just discovered that if I call
scanJsonValuesFromStream
to parse a file of JSON objects, then try to parse separate JSON from within the lambda, a JsonReaderException is thrown with the message,expected '{', offset: 0x00000000, buf: ...
. The buffer data shown is in a location within the InputStream.example:
The text was updated successfully, but these errors were encountered: