irccd  3.0.3
Static Public Member Functions | List of all members
irccd::json_util::type_traits< std::string > Struct Reference

Specialization for std::string. More...

#include <json_util.hpp>

Static Public Member Functions

static auto get (const nlohmann::json &value) -> std::optional< std::string >
 

Detailed Description

Specialization for std::string.

Member Function Documentation

◆ get()

static auto irccd::json_util::type_traits< std::string >::get ( const nlohmann::json &  value) -> std::optional< std::string >
static

Convert the JSON value to std::string.

Parameters
valuethe value
Returns
the string or empty if not a string type

The documentation for this struct was generated from the following file: