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.

Fork me on GitHub