IsJSON
Evaluates whether a string is in valid JSON (JavaScript Object Notation) data interchange format.
Method Signature
IsJSON(var=[any])Arguments
Argument
Type
Required
Description
Default
var
any
true
The value to test for JSON
Examples
isJSON Example
Returns true when the argument is a valid JSON value.
isJSON( "[1,2,3]" );
Result: true
Additional Examples
Related
Last updated
Was this helpful?
