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

isJSON(var) → returns boolean

isJSON Argument Reference

var string

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.


Expected Result: true

Fork me on GitHub