|
cppfig 0.1.0
Modern C++20 compile-time type-safe configuration library
|
JSON serializer using nlohmann::json. More...
#include <json.h>
Public Types | |
| using | data_type = Value |
Static Public Member Functions | |
| static auto | Parse (std::istream &is) -> StatusOr< Value > |
| Parses JSON from an input stream. | |
| static auto | ParseString (std::string_view str) -> StatusOr< Value > |
| Parses JSON from a string. | |
| static auto | Stringify (const Value &data, int indent=4) -> std::string |
| Converts a Value tree to a formatted JSON string. | |
JSON serializer using nlohmann::json.
Converts between cppfig::Value trees and JSON file format.
Parses JSON from an input stream.
|
inlinestatic |
Parses JSON from a string.
|
inlinestatic |
Converts a Value tree to a formatted JSON string.