Sha256: 2d84b454f7984b4c1db62974c4038a019716d8901ae19f29f8bd4c5309fc3c39
Contents?: true
Size: 378 Bytes
Versions: 1
Compression:
Stored size: 378 Bytes
Contents
#include <iostream> #include <iomanip> #include <nlohmann/json.hpp> using json = nlohmann::json; int main() { // a JSON text given as std::vector std::vector<uint8_t> text = {'[', '1', ',', '2', ',', '3', ']', '\0'}; // parse and serialize JSON json j_complete = json::parse(text.begin(), text.end()); std::cout << std::setw(4) << j_complete << "\n\n"; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simdjson-0.3.0 | vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.cpp |