Extracts a single field from a json
Due to the complexity of parsing several rows of JSON, this function takes longer than the average AuditBoard Analytics function.
JSONPARSE( Column, Name )
Column
Name
Checks if a column contains an input name within the Json path
column
name
Column of json to parse and extract field for name
String path to search for in column
Outputs field found in json
https://jsonpath-rw.readthedocs.io/en/latest/#jsonpath-syntaxarrow-up-right
Json
JSONPARSE( { Json }, "first" )
{"first" : "John", "middle" : "K", "last" : "Doe"}
"John"
{"first" : "Jane", "middle" : "J", "last" : "Doe"}
"Jane"
JSONPARSE( { Json }, "name[0].middle" )
{"name": [{"first" : "John", "middle" : "K", "last" : "Doe"}]}
"K"
{"name": [{"first" : "Jane", "middle" : "J", "last" : "Doe"}]}
"J"
Last updated 2 years ago