! @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
| 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 |