nlohmann::operator""_json

user-defined string literal for JSON values

Synopsis

Declared in <nlohmann/json.hpp>

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

Return Value

JSON value parsed from s

Parameters

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