MCPcopy Create free account
hub / github.com/Semporia/Scripts / jsonParse

Function jsonParse

jd_speed.js:661–671  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

659 })
660}
661function jsonParse(str) {
662 if (typeof str == "string") {
663 try {
664 return JSON.parse(str);
665 } catch (e) {
666 console.log(e);
667 $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
668 return [];
669 }
670 }
671}
672function safeGet(data) {
673 try {
674 if (typeof JSON.parse(data) == "object") {

Callers 1

jd_speed.jsFile · 0.70

Calls 2

logMethod · 0.45
msgMethod · 0.45

Tested by

no test coverage detected