-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Description
Bug Report
I'm using the single-header json.hpp (v3.1.1) and I am struggling with serializing stl containers:
auto tojson = nlohmann::json{ std::forward_list<double>{1,2,3} };
cout << tojson;
Expected: [1,2,3]
Got instead: [[1,2,3]]
It's the same for other STL containers like vector, list, initializer_list, ...
Did I miss something?
Compiler: Visual C++ 2017 (v15.6.1)
OS: Windows 10 x64
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation