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
when parse json string like {"type": "a\c"}, json_tokener_parse return NULL.
when parse json string like {"type": "a/c"}, json_object_to_json_string will return { "type": "a/c" }, there is one extra escape character
The text was updated successfully, but these errors were encountered:
gdchnly
changed the title
Parse string contains "\"
Parse string contains "\" or "/" errors
Jun 15, 2018
If you don't want forward slashes to be escaped in the output, i.e.:
{ "type": "a\/c" }
(which seems to be what you tried to say above, but github's markdown hides the backslash), then pass the JSON_C_TO_STRING_NOSLASHESCAPE flag when calling json_object_to_json_string_ext().
when parse json string like {"type": "a\c"}, json_tokener_parse return NULL.
when parse json string like {"type": "a/c"}, json_object_to_json_string will return { "type": "a/c" }, there is one extra escape character
The text was updated successfully, but these errors were encountered: