libfastjson icon indicating copy to clipboard operation
libfastjson copied to clipboard

JSON_C_TO_STRING_NOSLASHESCAPE

Open beave opened this issue 6 years ago • 0 comments

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

beave avatar Jul 09 '18 21:07 beave