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
Hello!
I use libfastjson in Sagan to create & parse json strings. One feature that I notced json-c has that libfastjson does not it the JSON_C_TO_STRING_NOSLASHESCAPE option. For example:
The allows me to build json strings without slash escapes. This can be really useful when trying to build multiple json objects within a json string. Right now, I have to resort to some rather kludgy means as a work around. Thank you!
Hello!
I use libfastjson in Sagan to create & parse json strings. One feature that I notced json-c has that libfastjson does not it the JSON_C_TO_STRING_NOSLASHESCAPE option. For example:
json_object_to_json_string_ext(my_string, JSON_C_TO_STRING_NOSLASHESCAPE)
The allows me to build json strings without slash escapes. This can be really useful when trying to build multiple json objects within a json string. Right now, I have to resort to some rather kludgy means as a work around. Thank you!
References:
https://stackoverflow.com/questions/44588310/json-c-string-with-character
https://json-c.github.io/json-c/json-c-0.13/doc/html/json__object_8h.html#a5c11d72c55f3ab7c088f19e7bf118163
The text was updated successfully, but these errors were encountered: