Evaluates whether a string is in valid JSON (JavaScript Object Notation) data interchange format.
isJSON(value)
returns boolean
Name | Type | Required | Default | Description |
---|---|---|---|---|
value | string | Yes | A string or variable that represents one. |
Returns true when the argument is a valid JSON value.
isJSON("[1,2,3]")