MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / flatten

Function flatten

dependencies/json/json.hpp:24647–24652  ·  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

24645 @since version 2.0.0
24646 */
24647 basic_json flatten() const
24648 {
24649 basic_json result(value_t::object);
24650 json_pointer::flatten("", *this, result);
24651 return result;
24652 }
24653
24654 /*!
24655 @brief unflatten a previously flattened JSON value

Callers 1

json.hppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected