OCLOperators JsonGetProp
The JsonGetProp operator is for JSON strings and returns the value of a JSON property as a string. Null is returned if the property is not available.
The JsonGetProp operator can be chained to get a nested JSON value.
Example: 1
'{name: "Sam"}'.JsonGetProp('name')
Returns
'Samuel'
Example: 2
'{person: {name: "Same", age: 25}}'.JsonGetProp('person').JsonGetProp('age')
Returns
25
This page was edited 33 days ago on 08/19/2024. What links here