Node.js examples for Object:Json
Is String json Parseable
JSON.isParseable = function(str) { // to do: if true, save result in cache try {/*from w w w.java 2s. co m*/ JSON.parse(str); return true; } catch(e) { return false; } };