name requiredThe variable name to store the parsed JSON under. Read it back later with jsonpath using the same name. The name is case-sensitive. It is stored page-wide, so a name defined anywhere on the page is visible to every later jsonpath on that page.
expression requiredA JSON string, or any expression that produces JSON - a literal JSON object or array, an include of a remote JSON endpoint, or a view that outputs JSON. It is JSON-decoded once before storing. Invalid JSON is decoded to an empty array, with no error.
[{definejson:greeting:{"msg":"hello"}}]
[{definejson:bad:not json}{jsonpath:bad:$.anything}]
{definejson:people:{"items":[{"n":"Ada"},{"n":"Boris"}]}}{jsonpath:people:$.items[*].n::, }
{definejson:JsonRet:{view:ecomail_subscr}}{jsonpath:JsonRet:$.data[*].email::, }
[{definejson:scores:[10,20,30]}{jsonpath:scores:$[1]}]
[{definejson:address:{"city":"Praha","zip":"11000"}}{jsonpath:address:$.city}]