-
Notifications
You must be signed in to change notification settings - Fork 13
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
json2dict converts unquoted true and false to numerical boolean #38
Comments
That's an interesting observation. In general, we've tried to make the yajl::json2dict function perform identically to the same one provided by the json package, except faster. However, this is indeed an unintended difference in behavior:
|
I think changing the replacements in |
Thanks @bovine for your response, I also have seen that location but I was not sure if there might be other side effects when fixing it. As there are already tests for the library, we can rerun the tests and see if something has been broken. I will recompile the library and check. |
@bovine I have performed a pull request. Let's see the test results in the ci.. |
Can you please approve the waiting workflows (#39)? Thanks. |
That PR has been merged and released as v1.8.1 |
The json2dict treats the unquoted string values true and false as boolean and converts them to 1 and 0.
Example:
{
"valueTrue": true,
"valueFalse": false
}
will be converted to:
valueTrue 1 valueFalse 0
Is there any configuration to prevent that ?
Thanks in advance!
The text was updated successfully, but these errors were encountered: