Lines Matching refs:nlohmann
4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
13 #include <nlohmann/json.hpp>
14 using nlohmann::json;
352 nlohmann::json j = obj1; //via json object
361 nlohmann::json j1 = obj1; //via json string
363 nlohmann::json j2 = nlohmann::json::parse(s);
372 nlohmann::json j1 = obj1; //via msgpack
373 std::vector<uint8_t> buf = nlohmann::json::to_msgpack(j1);
374 nlohmann::json j2 = nlohmann::json::from_msgpack(buf);
383 nlohmann::json j1 = obj1; //via bson
384 std::vector<uint8_t> buf = nlohmann::json::to_bson(j1);
385 nlohmann::json j2 = nlohmann::json::from_bson(buf);
394 nlohmann::json j1 = obj1; //via cbor
395 std::vector<uint8_t> buf = nlohmann::json::to_cbor(j1);
396 nlohmann::json j2 = nlohmann::json::from_cbor(buf);
405 nlohmann::json j1 = obj1; //via ubjson
406 std::vector<uint8_t> buf = nlohmann::json::to_ubjson(j1);
407 nlohmann::json j2 = nlohmann::json::from_ubjson(buf);