-
Notifications
You must be signed in to change notification settings - Fork 32
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_object_merge does not merge #1
Comments
Yep that's not right at all - merge must be producing a malformed object to get that output from serialize. I'll check it out this evening. |
Currently, the expected output from merge for that example would be Perhaps I could rename the existing |
As of e766b23, the output is I just noticed in your example: it doesn't matter in this case because the JSON snippets are the same length, but both of your |
Oh, that's great news! Thank you. Yep, this is a dummy copy-n-paste error, thanks for noticing. |
That's odd, isn't it? I think, I was supposed to get {"x": 1, "y": 3, "z": 4"} here. Maybe the function should be rewritten completely using the recursive scheme. I suppose, it must be good to have an ability to merge e.g.
I'll try to take a look on the sources in a couple of days and figure it out.
The text was updated successfully, but these errors were encountered: