to_json and from_json skip missing elements. #2465
-
Say we have the following code
Now this is going to work fine now lets say we write this to a file. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
For this, you need to define your own |
Beta Was this translation helpful? Give feedback.
-
I found a better fix by just changing #define NLOHMANN_JSON_FROM(v1) |
Beta Was this translation helpful? Give feedback.
I found a better fix by just changing #define NLOHMANN_JSON_FROM(v1)
to just be wraped in a try catch.