You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ppl-lang/functions/ppl-json.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,6 +271,7 @@ Example:
271
271
**Description**
272
272
273
273
`json_append(json_string, array(key1, value1, key2, value2, ...))` appends values to end of an array at key within the json elements. Returns the updated json object after appending.
274
+
`json_append` is identical to `json_extend` function except that it does not flatten given arrays before appending them.
274
275
275
276
**Argument type:**
276
277
-\<json_string\> must be a JSON_STRING.
@@ -287,7 +288,6 @@ Append adds the value to the end of the existing array with the following cases:
287
288
- path is an existing array not empty - the value are added to the array's tail
288
289
- path not found - the value are added to the root of the json tree
289
290
- path is an existing array is empty - create a new array with the given value
290
-
- json_append is identical to json_extend function except that it does not flatten given arrays before appending them.
291
291
292
292
Example:
293
293
@@ -320,6 +320,7 @@ Example:
320
320
**Description**
321
321
322
322
`json_extend(json_string, array(key1, value1, key2, value2, ...))` extends values to end of an array at path_key within the json elements. Returns the updated json object after extending.
323
+
`json_extend` is identical to `json_append` function except that it flattens given arrays before appending.
323
324
324
325
**Argument type:**
325
326
-\<json_string\> must be a JSON_STRING.
@@ -336,7 +337,6 @@ Extends adds the value to the end of the existing array with the following cases
336
337
- path is an existing array not empty - the value are added to the array's tail
337
338
- path not found - the value are added to the root of the json tree
338
339
- path is an existing array is empty - create a new array with the given value
339
-
- json_extend is identical to json_append function except that it flattens given arrays before appending.
0 commit comments