OCLOperators JsonGetProp
This page was created by Charles on 2024-08-16. Last edited by 62.169.16.147 on 2026-09-12.
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 unavailable.
The JsonGetProp operator can be chained to get a nested JSON value.
Example: 1[edit source]
'{name: "Samuel"}'.JsonGetProp('name')
Returns
'Samuel'
Example: 2[edit source]
'{person: {name: "Samuel", age: 25}}'.JsonGetProp('person').JsonGetProp('age')
Returns
25
