Lucee Function Reference
isjson()
Evaluates whether a string is in a valid JSON (JavaScript Object Notation) or JSON5 data interchange format.
Example
isjson(any var,[string format]):boolean
Category
decision,json,javascript,json5
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
| Name | Type | Required | Default Value | Description |
|---|---|---|---|---|
| var | any | Yes | A string or variable that represents one. | |
| format | string | No | json5 |
The format of the input string. Possible values are: |