mirror of
https://github.com/nlohmann/json.git
synced 2024-08-23 13:32:28 +02:00
15 lines
251 B
C++
15 lines
251 B
C++
|
#include <json.hpp>
|
||
|
|
||
|
using namespace nlohmann;
|
||
|
|
||
|
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';
|
||
|
}
|