#65: Added number(), parse() and more for data parsing

This commit is contained in:
frikky
2020-06-18 11:15:52 +02:00
parent 96b5998ce0
commit 482b498a98
7 changed files with 304 additions and 57 deletions
+4 -1
View File
@@ -518,7 +518,10 @@ const Workflows = (props) => {
var showResult = data.result.trim()
showResult = replaceAll(showResult, " None", " \"None\"");
try {
JSON.parse(showResult)
const tmp = String(JSON.parse(showResult))
if (!tmp.includes("{") && !tmp.includes("[")) {
jsonvalid = false
}
} catch (e) {
jsonvalid = false
}