-
for example if i have the following json file {
"cat": {
"Garfield": 10
},
"cat": {
"Tom" : 11
},
"cat": {
"Andy": 1
} I read that the library stores the last seen key is there way i choose how to handle the problem , for example merging the all of the cats into on object like {
"cat": {
"Garfield": 10,
"Tom": 11,
"Andy": 1
} or selecting the first one to appear or the most common one appearing see #2667 Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
nlohmann
May 8, 2022
Replies: 1 comment 1 reply
-
This could be handled with a parser callback, see https://json.nlohmann.me/features/parsing/parser_callbacks/. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nlohmann
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This could be handled with a parser callback, see https://json.nlohmann.me/features/parsing/parser_callbacks/.