Reading array elements from string #3031
-
I have an array of
How do I initialize nlohmann::json with a std::string and then access array elements within it? Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Asking same question on stack overflow gave me the answer: https://stackoverflow.com/questions/69327986/reading-array-elements-from-string/69328453#69328453 I have to use this instead:
|
Beta Was this translation helpful? Give feedback.
Asking same question on stack overflow gave me the answer:
https://stackoverflow.com/questions/69327986/reading-array-elements-from-string/69328453#69328453
I have to use this instead:
json object_array = json::parse(database_string);