9b32f72584
As I learned in https://github.com/melpon/wandbox/issues/209, this library is already installed at Wandbox, so we need to adjust the examples to use `#include "json.hpp"` insteas of `#include <json.hpp>`.
15 lines
269 B
C++
15 lines
269 B
C++
#include "json.hpp"
|
|
|
|
using json = nlohmann::json;
|
|
|
|
int main()
|
|
{
|
|
// implicitly create a JSON null value
|
|
json j1;
|
|
|
|
// explicitly create a JSON null value
|
|
json j2(nullptr);
|
|
|
|
// serialize the JSON null value
|
|
std::cout << j1 << '\n' << j2 << '\n';
|
|
}
|