json/doc/examples/basic_json__boolean_t.cpp

15 lines
254 B
C++
Raw Normal View History

2015-06-22 21:21:49 +00:00
#include <json.hpp>
using json = nlohmann::json;
2015-06-22 21:21:49 +00:00
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';
}