Function operator””_json
Defined in File json.hpp
Function Documentation
-
inline nlohmann::json operator""_json(const char *s, std::size_t n)
user-defined string literal for JSON values
This operator implements a user-defined string literal for JSON objects. It can be used by adding
"_json"to a string literal and returns a JSON object if no parse error occurred.- Since
version 1.0.0
- Parameters:
s – [in] a string representation of a JSON object
n – [in] the length of string s
- Returns:
a JSON object