json/doc/examples/basic_json__string_t_value_type.cpp

13 lines
245 B
C++
Raw Normal View History

2015-06-21 22:42:32 +02:00
#include <json.hpp>
using json = nlohmann::json;
2015-06-21 22:42:32 +02:00
int main()
{
// create a JSON string directly from a string literal
json j("The quick brown fox jumps over the lazy doc");
// serialize the JSON array
std::cout << j << '\n';
}