File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 185
185
(integer ) 2
186
186
```
187
187
188
+ ### JSON.CLEAR
189
+
190
+ > ** Available since 2.0.0.**
191
+ > ** Time complexity:** O(N), where N is the number of cleared values
192
+
193
+ #### Syntax
194
+
195
+ ```
196
+ JSON.CLEAR <key> [path]
197
+ ```
198
+
199
+ #### Description
200
+
201
+ Clear a container value (Array/Object).
202
+
203
+ ` path ` defaults to root if not provided. Non-existing keys and paths are ignored.
204
+
205
+ #### Return value
206
+
207
+ [ Integer] [ 2 ] , specifically the number of containers cleared.
208
+
188
209
### JSON.NUMINCRBY
189
210
190
211
> ** Available since 1.0.0.**
246
267
" [null,4,10,null]"
247
268
```
248
269
270
+ ### JSON.TOGGLE
271
+
272
+ > ** Available since 2.0.0.**
273
+ > ** Time complexity:** O(1).
274
+
275
+ #### Syntax
276
+
277
+ ```
278
+ JSON.TOGGLE <key> <path>
279
+ ```
280
+
281
+ #### Description
282
+
283
+ Toggle a boolean value stored at ` path ` .
284
+
285
+ #### Return value
286
+
287
+ [ Integer] [ 2 ] , specifically the new value (0-false or 1-true), or [ null] [ 6 ] element for JSON values matching the path which are not boolean.
288
+
249
289
### JSON.STRAPPEND
250
290
251
291
> ** Available since 1.0.0.**
You can’t perform that action at this time.
0 commit comments