[Global]: loading init
This commit is contained in:
13
deps/json/docs/examples/operator_literal_json.cpp
vendored
Normal file
13
deps/json/docs/examples/operator_literal_json.cpp
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
using json = nlohmann::json;
|
||||
using namespace nlohmann::literals;
|
||||
|
||||
int main()
|
||||
{
|
||||
json j = R"( {"hello": "world", "answer": 42} )"_json;
|
||||
|
||||
std::cout << std::setw(2) << j << '\n';
|
||||
}
|
Reference in New Issue
Block a user