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 works incorrectly #221

Closed
chenha0 opened this issue Jan 21, 2016 · 0 comments
Closed

JSON_C_TO_STRING_NOSLASHESCAPE works incorrectly #221

chenha0 opened this issue Jan 21, 2016 · 0 comments

Comments

@chenha0
Copy link
Contributor

chenha0 commented Jan 21, 2016

The code is like:

    my_string = json_object_new_string("/foo/bar/baz");
    printf("my_string.to_string(NOSLASHESCAPE)=%s\n", json_object_to_json_string_ext(my_string, JSON_C_TO_STRING_NOSLASHESCAPE));

And the result turs out to be:

my_string.to_string(NOSLASHESCAPE)="/foo/foo/bar/foo/bar/baz"
chenha0 added a commit to chenha0/json-c that referenced this issue Jan 21, 2016
hawicz added a commit that referenced this issue Apr 30, 2016
Fix issue #221: JSON_C_TO_STRING_NOSLASHESCAPE works incorrectly
@hawicz hawicz closed this as completed May 1, 2016
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

2 participants