You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is the expected behavior or not, but seeing as how the json below isn't really returning the "message" as an array, I'm confused as to why I'm having to use [0] to select it...
Assuming the json below:
{
"status": "failure",
"message": "This is a spaced string."
}
Works:
std::string status = j["status"].get<std::string>();
cout << status;
I'm not sure if this is the expected behavior or not, but seeing as how the json below isn't really returning the "message" as an array, I'm confused as to why I'm having to use [0] to select it...
Assuming the json below:
Works:
Doesn't work:
Works:
The text was updated successfully, but these errors were encountered: