chriso/validator.js — pull request #261 by cjroth (2014-02-25 23:16:47+00:00)
Title: 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);
```