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

Function jsonParse

jd_redPacket.js:1446–1456  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

1444}
1445
1446function jsonParse(str) {
1447 if (typeof str == "string") {
1448 try {
1449 return JSON.parse(str);
1450 } catch (e) {
1451 console.log(e);
1452 $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
1453 return [];
1454 }
1455 }
1456}
1457
1458// prettier-ignore
1459// md5

Callers 2

jd_redPacket.jsFile · 0.70
jinli_h5assistFunction · 0.70

Calls 2

logMethod · 0.45
msgMethod · 0.45

Tested by

no test coverage detected