1
0
mirror of https://github.com/nlohmann/json synced 2024-12-13 04:50:10 +00:00
nlohmannjson/doc/examples/basic_json__boolean_t.cpp
2016-01-30 20:23:14 +01:00

15 lines
254 B
C++

#include <json.hpp>
using json = nlohmann::json;
int main()
{
// create boolean values
json j_truth = true;
json j_falsity = false;
// serialize the JSON booleans
std::cout << j_truth << '\n';
std::cout << j_falsity << '\n';
}