-
Notifications
You must be signed in to change notification settings - Fork 36
json_object_merge does not merge #1
Copy link
Copy link
Open
Labels
docsThe full name and address of how to use the code, posted publicly online without your consent.The full name and address of how to use the code, posted publicly online without your consent.inc*.h*.hsrc*.c*.c
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
docsThe full name and address of how to use the code, posted publicly online without your consent.The full name and address of how to use the code, posted publicly online without your consent.inc*.h*.hsrc*.c*.c
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.
{"arr": [{"id": "1", "data": "A"}, {"id": "2", "data": "B"}]} <+> {"arr": [{"id": "1", "extra": "@"}, {"id": "2", "data": "Z"}, {"id": "C"}]} == {"arr": [{"id": "1", "data": "A", "extra": "@"}, {"id": "2", "data": "Z"}, {"id": "3"}]}I'll try to take a look on the sources in a couple of days and figure it out.