This commit is contained in:
10
node_modules/licia/isJson.js
generated
vendored
Normal file
10
node_modules/licia/isJson.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
exports = function(val) {
|
||||
try {
|
||||
JSON.parse(val);
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = exports;
|
||||
Reference in New Issue
Block a user