File: unflatten_options.md

package info (click to toggle)
jsoncons 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,584 kB
  • sloc: cpp: 136,382; sh: 33; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
### jsoncons::jsonpointer::unflatten_options

```cpp
#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.

Value      |Definition
-----------|-----------
none|Default is to attempt to preserve arrays
assume_object|Assume an integer appearing in a path is an object key