mirror of
https://github.com/nlohmann/json.git
synced 2026-11-15 11:58:21 +00:00
reorganized repo
This commit is contained in:
1 parent
4bb5126502
commit
91c330ae01
88 files changed
+313
-321
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#include <json.hpp>
|
||||
|
||||
using namespace nlohmann;
|
||||
|
||||
int main()
|
||||
{
|
||||
// create an object_t value
|
||||
json::object_t value = { {"one", 1}, {"two", 2} };
|
||||
|
||||
// create a JSON object from the value
|
||||
json j(value);
|
||||
|
||||
// serialize the JSON object
|
||||
std::cout << j << '\n';
|
||||
}
|
||||
Reference in new issue
Block a user