unflatten_options.md

May 24, 2023 ยท View on GitHub

jsoncons::jsonpointer::unflatten_options

#include <jsoncons/jsonpointer/jsonpointer.hpp>

enum class unflatten_options{none,object=1};

Specifies how to preserve arrays while unflattening a json object of JSON Pointer-value pairs. There is no unique solution. An integer appearing in a path could be an array index or it could be an object key.

ValueDefinition
noneDefault is to attempt to preserve arrays
assume_objectAssume an integer appearing in a path is an object key