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
Good afternoon. I can make mistakes in actions. But when I do initialization through curly brackets, I get an array instead of the expected object.
Reproduction steps
For examle
using json = nlohmann::json;
intmain()
{
std::string str = "{ \"uuu\": 123 }";
json j = json::parse(str);
json a { j }; // a is array of objects ["{ \"uuu\": 123 }"]
json b { a }; // b is array of array of objects [["{ \"uuu\": 123 }"]]
}
Expected vs. actual results
I would like to see the same object
Minimal code example
No response
Error messages
No response
Compiler and operating system
g++
Library version
last
Validation
The bug also occurs if the latest version from the develop branch is used.
Description
Good afternoon. I can make mistakes in actions. But when I do initialization through curly brackets, I get an array instead of the expected object.
Reproduction steps
For examle
Expected vs. actual results
I would like to see the same object
Minimal code example
No response
Error messages
No response
Compiler and operating system
g++
Library version
last
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: