irccd
3.0.3
|
Utilities for JSON. More...
Classes | |
class | deserializer |
Convenient JSON object parser. More... | |
struct | type_traits |
Describe how to convert a JSON value. More... | |
struct | type_traits< bool > |
Specialization for bool . More... | |
struct | type_traits< double > |
Specialization for double . More... | |
struct | type_traits< std::int16_t > |
Specialization for std::int16_t . More... | |
struct | type_traits< std::int32_t > |
Specialization for std::int32_t . More... | |
struct | type_traits< std::int64_t > |
Specialization for std::int64_t . More... | |
struct | type_traits< std::int8_t > |
Specialization for std::int8_t . More... | |
struct | type_traits< std::string > |
Specialization for std::string . More... | |
struct | type_traits< std::uint16_t > |
Specialization for std::uint16_t . More... | |
struct | type_traits< std::uint32_t > |
Specialization for std::int32_t . More... | |
struct | type_traits< std::uint64_t > |
Specialization for std::uint64_t . More... | |
struct | type_traits< std::uint8_t > |
Specialization for std::uint8_t . More... | |
Functions | |
auto | pretty (const nlohmann::json &value, int indent=4) -> std::string |
auto | contains (const nlohmann::json &array, const nlohmann::json &value) noexcept -> bool |
Utilities for JSON.
|
noexcept |
Check if a JSON array contains a specific value in any order.
array | the JSON array |
value | the JSON value |
auto irccd::json_util::pretty | ( | const nlohmann::json & | value, |
int | indent = 4 |
||
) | -> std::string |
Print the value as human readable.
value | the value |
indent | the optional indent for objects/arrays |