1
0
mirror of https://github.com/nlohmann/json.git synced 2026-07-25 21:23:02 +04:00
Files
json/doc/examples/basic_json__number_integer_t.cpp
T
2015-06-22 21:44:20 +02:00

15 lines
235 B
C++

#include <json.hpp>
using namespace nlohmann;
int main()
{
// create a JSON number from number_integer_t
json::number_integer_t value = 42;
json j(value);
// serialize the JSON numbers
std::cout << j << '\n';
}