Extracts a single field from a json
Due to the complexity of parsing several rows of JSON, this function takes longer than the average Cascade function.
JSONPARSE( Column, Name )
Column
Name
Checks if a column contains an input name within the Json path
column
name
Input
Description
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 3 years ago
Was this helpful?