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

Name

Description

s

a string representation of a JSON object

n

length of string s

Created with MrDocs