Skip to content

Commit b81ddfd

Browse files
committed
jsonpointer flatten/unflatten support [] and {}
1 parent 2282d44 commit b81ddfd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

doc/ref/jsonpointer/flatten.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ Json unflatten(const Json& value, unflatten_options options = unflatten_options:
1111
```
1212
1313
(1) flattens a json object or array into a single depth object of JSON Pointer-value pairs.
14-
The keys in the flattened object are JSONPointer's.
15-
The values are primitive (string, number, boolean, or null). Empty objects or arrays become null. (until 0.160.0)
16-
The values are primitive (string, number, boolean, or null), empty object (`{}`) or empty array (`[]`). (since 0.160.0)
14+
15+
- The keys in the flattened object are JSONPointer's.
16+
17+
- (until 0.160.0) The values are primitive (string, number, boolean, or null). Empty objects or arrays become null.
18+
19+
- (since 0.160.0) The values are primitive (string, number, boolean, or null), empty object (`{}`) or empty array (`[]`).
1720
1821
(2) unflattens a json object of JSON Pointer-value pairs. There is no unique solution,
1922
an integer appearing in a path could be an array index or it could be an object key.

0 commit comments

Comments
 (0)