// Clean invalid JSON escape sequences from Zoho proxy // Using String.fromCharCode(92) for backslash to avoid PHP/Python/JS escape confusion var bs = String.fromCharCode(92); var outputStr = json.details.output .split(bs + "]").join("]") .split(bs + ")").join(")") .split(bs + "(").join("(") .split(bs + "-").join("-") .split(bs + "*").join("*") .split(bs + "!").join("!"); var inner = JSON.parse(outputStr); if (inner) json = inner; } catch(e) { console.warn("Zoho envelope parse failed:", e.message); }