Closed XedinUnknown closed 1 year ago
Would you find some time to make a failing test with this behavior in a PR?
I added a passing test on master
in 5c1d6c1 Can you check it?
Heya! Unfortunately, I don't have access to the project anymore. But the test looks like it tests for this, and if it's passing - I'd say it's good.
Ok, thanks anyway ;)
Hi!
This library works very well in my project, thank you very much for making a reliable streaming JSON parser!
The Problem
Currently, there are some strings in the API response that I need to parse, which contain links that look like this:
When I render this for the users, the URL is broken.
Possible Cause
\u0026
. The slash breaks URL parsing, because it is illegal there.&
(ampersand) character, which should be there in its place. This breaks the link itself.Suggested Solution
According to the JSON spec, such Unicode escape sequences up to 4 numbers long should be decoded automatically.
Add support for Unicode escape sequences, according to spec.