Merge 57db153ea7 into e8bf1f62f7
This commit is contained in:
commit
94d39856e3
12
src/json.hpp
12
src/json.hpp
@ -17123,6 +17123,18 @@ inline nlohmann::json operator "" _json(const char* s, std::size_t n)
|
|||||||
return nlohmann::json::parse(s, s + n);
|
return nlohmann::json::parse(s, s + n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@brief user-defined to_string function for JSON values
|
||||||
|
|
||||||
|
This function implements a user-defined to_string for JSON objects.
|
||||||
|
|
||||||
|
@param[in] j a JSON object
|
||||||
|
@return a std::string object
|
||||||
|
*/
|
||||||
|
inline std::string to_string(const nlohmann::json& j) {
|
||||||
|
return j.dump();
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@brief user-defined string literal for JSON pointer
|
@brief user-defined string literal for JSON pointer
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user