add #isJSON w/ tests

not sure if there are any objections to adding isJSON, but i added this because it would be useful in this case:
```
if (!validator.isJSON(str)) return false;
// we can continue from this point on without needing try...catch blocks
var obj = JSON.parse(str);
```