isJSON

Evaluates whether a string is in valid JSON (JavaScript Object Notation) data interchange format.

isJSON(var) → returns boolean

Argument Reference

var string
Required

A string or variable that represents one.

Links more information about isJSON

Examples
Sample code invoking the isJSON function

Returns true if the parameter is a valid JSON value. Returns False if the parameter is not a valid JSON data representation.

isJSON("[1,2,3]")

Expected Result: true


Fork me on GitHub