isJSON

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

isJSON(var) → returns boolean

isJSON 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