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

Function jsonParse

activity/jd_unbind.js:241–251  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

239 })
240}
241function jsonParse(str) {
242 if (typeof str == "string") {
243 try {
244 return JSON.parse(str);
245 } catch (e) {
246 console.log(e);
247 $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
248 return [];
249 }
250 }
251}
252function safeGet(data) {
253 try {
254 if (typeof JSON.parse(data) == "object") {

Callers 1

jd_unbind.jsFile · 0.70

Calls 2

logMethod · 0.45
msgMethod · 0.45

Tested by

no test coverage detected