Merge commit 'b9112977b074d67d6c83f04af36b6dabdf1d92c6' as 'external/json'
This commit is contained in:
14
external/json/docs/examples/ordered_json.cpp
vendored
Normal file
14
external/json/docs/examples/ordered_json.cpp
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <iostream>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
using ordered_json = nlohmann::ordered_json;
|
||||
|
||||
int main()
|
||||
{
|
||||
ordered_json j;
|
||||
j["one"] = 1;
|
||||
j["two"] = 2;
|
||||
j["three"] = 3;
|
||||
|
||||
std::cout << j.dump(2) << '\n';
|
||||
}
|
||||
Reference in New Issue
Block a user