mirror of
https://github.com/nlohmann/json.git
synced 2026-11-16 12:28:02 +00:00
more documentation
This commit is contained in:
1 parent
d972483b33
commit
4bb5126502
9 files changed
+186
-32
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#include <json.hpp>
|
||||
|
||||
using namespace nlohmann;
|
||||
|
||||
int main()
|
||||
{
|
||||
// create JSON values
|
||||
json a = 23;
|
||||
json b = 42;
|
||||
|
||||
// copy-assign a to b
|
||||
b = a;
|
||||
|
||||
// serialize the JSON arrays
|
||||
std::cout << a << '\n';
|
||||
std::cout << b << '\n';
|
||||
}
|
||||
Reference in new issue
Block a user