Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON_C_TO_STRING_NOSLASHESCAPE #156

Open
beave opened this issue Jul 9, 2018 · 0 comments
Open

JSON_C_TO_STRING_NOSLASHESCAPE #156

beave opened this issue Jul 9, 2018 · 0 comments

Comments

@beave
Copy link

beave commented Jul 9, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant