1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-16 18:41:53 +03:00

more documentation

This commit is contained in:
Niels
2015-06-21 18:30:08 +02:00
parent d972483b33
commit 4bb5126502
9 changed files with 186 additions and 32 deletions

View File

@ -0,0 +1,16 @@
#include <json.hpp>
using namespace nlohmann;
int main()
{
// create a JSON value
json a = 23;
// move contents of a to b
json b(std::move(a));
// serialize the JSON arrays
std::cout << a << '\n';
std::cout << b << '\n';
}