MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / flatten

Function flatten

3rd/nlohmann_json/single_include/nlohmann/json.hpp:25844–25849  ·  view source on GitHub ↗

! @brief return flattened JSON value The function creates a JSON object whose keys are JSON pointers (see [RFC 6901](https://tools.ietf.org/html/rfc6901)) and whose values are all primitive. The original JSON value can be restored using the @ref unflatten() function. @return an object that maps JSON pointers to primitive values @note Empty objects and arrays are flat

Source from the content-addressed store, hash-verified

25842 @since version 2.0.0
25843 */
25844 basic_json flatten() const
25845 {
25846 basic_json result(value_t::object);
25847 json_pointer::flatten("", *this, result);
25848 return result;
25849 }
25850
25851 /*!
25852 @brief unflatten a previously flattened JSON value

Callers 1

json.hppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected