Closed ngreve closed 4 years ago
I am unable to reproduce this
do you have a way to check if JSMN is getting an ASCII space character (value 32 in decimal)? Maybe it's getting a UNICODE encoded space character and I think it only works with ASCII (which would convert the space character into multiple characters, something like U0020b
).
When using a JSON string like
{"input":22}
, JSMN does not find the token with its value, even though it's a valid JSON String. JSMN needs spaces around the integer value like{"input": 22 }
. The first string, without spaces, should work too.