Initial Comit
The Server has overcome it's early Development Steps. although it still is a bit unstable it works in it's actual state
This commit is contained in:
9
bin/classes/IsJsonString.js
Normal file
9
bin/classes/IsJsonString.js
Normal file
@ -0,0 +1,9 @@
|
||||
function IsJsonString(str) {
|
||||
try {
|
||||
JSON.parse(str);
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
module.exports = IsJsonString;
|
Reference in New Issue
Block a user