mirror of
https://github.com/nlohmann/json.git
synced 2024-08-22 04:52:35 +02:00
13 lines
242 B
C++
13 lines
242 B
C++
|
#include <json.hpp>
|
||
|
|
||
|
using namespace nlohmann;
|
||
|
|
||
|
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';
|
||
|
}
|