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

more documentation

This commit is contained in:
Niels
2015-06-22 23:21:49 +02:00
parent f1c9aa26c4
commit 48545f5b18
14 changed files with 486 additions and 78 deletions

View File

@ -0,0 +1,15 @@
#include <json.hpp>
using namespace nlohmann;
int main()
{
// an anonymous enum
enum { t = 17 };
// create a JSON number from the enum
json j(t);
// serialize the JSON numbers
std::cout << j << '\n';
}