2017-04-21 20:07:07 +00:00
|
|
|
#include "json.hpp"
|
2015-06-20 22:59:33 +00:00
|
|
|
|
2016-01-30 19:23:14 +00:00
|
|
|
using json = nlohmann::json;
|
2015-06-20 22:59:33 +00:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2016-08-31 15:07:35 +00:00
|
|
|
// implicitly create a JSON null value
|
|
|
|
json j1;
|
|
|
|
|
|
|
|
// explicitly create a JSON null value
|
|
|
|
json j2(nullptr);
|
2015-06-20 22:59:33 +00:00
|
|
|
|
|
|
|
// serialize the JSON null value
|
2016-08-31 15:07:35 +00:00
|
|
|
std::cout << j1 << '\n' << j2 << '\n';
|
2015-06-20 22:59:33 +00:00
|
|
|
}
|