You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do agree there is something wrong here: you expected message to be "Hello there" but it's actually \"Hello there\"
The backslashes should not be present in the output.
But there is a good reason for that
As it's a library designed for low-end embedded system, I originally decided that the library would not be allowed to move bytes in the string.
I thought that the performance penality wasn't worth it and that nobody would ever see it.
Turns out I was wrong twice.
First you proved me that somebody did see the bug.
Second, I now think that the cost of moving is acceptable, it’s just O(1) after all.
Hello again,
Say if we were to parse JSON that looked like this -
When we read it out like so -
I noticed that we still get the escaped form. Perhaps this is a bug in Jsmn?
The text was updated successfully, but these errors were encountered: