This repository has been archived on 2023-10-03. You can view files and clone it, but cannot push or open issues or pull requests.
JS-Server-Framework/bin/classes/IsJsonString.js
steevLP d22fdadc50 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
2019-09-25 23:53:02 +02:00

9 lines
159 B
JavaScript

function IsJsonString(str) {
try {
JSON.parse(str);
} catch (e) {
return false;
}
return true;
}
module.exports = IsJsonString;