basic_json__boolean_t.cpp 254 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #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'; }