Attributes |
Name | Required | Request-time | Type | Description |
value | false | true | java.lang.String | The JSON value. |
var | false | true | java.lang.String | The name of the page context attribute to store the JSON in. |
target | false | true | java.lang.String | The target Object to store the JSON in. This must be another JSON object. |
key | false | true | java.lang.String | The key used to add this value to the surrounding JSON context. Should be used if and only if the surrounding JSON tag is a jsonobject tag. |
mode | false | true | java.lang.String | This parameter controls what is stored in the page context attribute given by the var attribute. If mode equals 'text', formatted JSON for the value will be stored; if mode equals 'object', the JSON value itself. If mode equals 'wrapper', a CmsJspJsonWrapper around the object is stored. The default value is 'wrapper'. |
parse | false | true | java.lang.String | If true, uses the given value as a string to parse JSON from, else just uses the value as-is. |
errorVar | false | true | java.lang.String | Name of a page scope variable to store a parse error in. If no parse error occurs, the variable is set to null. |