MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / parseJsonMaybe

Function parseJsonMaybe

wxapp/ctrip.js:81–88  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

79}
80
81function parseJsonMaybe(text) {
82 if (!text || typeof text !== "string") return text;
83 try {
84 return JSON.parse(text);
85 } catch {
86 return text;
87 }
88}
89
90function parseAccount(raw) {
91 const text = String(raw || "").trim();

Callers 2

gatewayFunction · 0.85
querySignStatusMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected