Skip to content

JSON_C_TO_STRING_NOSLASHESCAPE #156

@beave

Description

@beave

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions