nlohmann::operator""_json

user-defined string literal for JSON values

Synopses

Declared in <nlohmann/json.hpp>

user-defined string literal for JSON values

nlohmann::json
operator""_json(
    char const* s,
    std::size_t n);
» more...

user-defined string literal for JSON values

nlohmann::json
operator""_json(
    char8_t const* s,
    std::size_t n);
» more...

Return Value

JSON value parsed from s

Parameters

NameDescription
sa string representation of a JSON object
nlength of string s