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
1350: BUGFIX - Allow ansi code translation for json unescape. #1351
base: master
Are you sure you want to change the base?
Conversation
Ready for re-review. |
src/funjson.c
Outdated
@@ -64,6 +65,27 @@ json_escape_string(char *input) | |||
return buff; | |||
} | |||
|
|||
/** Unescape a string for use as a JSON string. Returns a calloced buffer under 'json.string.partialbuf'. **/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a proper comment header documenting args and return values, and a more detailed/accurate description of what it's doing would be good - "unescape" isn't really descriptive of what it's doing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New comment header description added. Let me know if the description works as is.
There's an error in here somewhere causing a one-off error with \0 in json_map for the value, as it puts the null too far to the right. Debug: Edit: Fix being tested in production. |
This has been in production for a few months now. But I gotta figure out what is going on with the unit test's test harness. |
Tests fixed. Ready for a new look @talvo |
This is related to the following ticket: #1350