Skip to content

Merging json objects #2847

Answered by nlohmann
Batlan asked this question in Q&A
Jul 1, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Right now, update is not implemented recursively: https://github.com/nlohmann/json/blob/develop/include/nlohmann/json.hpp#L5906-L5929

I think your expected behavior would be possible by recursively call update on all children.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nlohmann
Comment options

@Batlan
Comment options

Answer selected by Batlan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants