Drop JSON function

Recursively drops elements from the provided json.

Namespace

json

Input

json-string or json-object

Output

json-element

Example

set-column newjson \ json:Drop(json, 'numbers', 'integer', 'float', 'aliases', 'name')

The resulting json is as follows:

{ "coordinates":[12.56,45.789], "responses":[ {"a":1,"b":"X","c":2.8}, {"a":2,"b":"Y","c":232342.8}, {"a":3,"b":"Z","c":null}, {"a":4,"b":"U"} ], "double":2.8 }

 

Created in 2020 by Google Inc.