JSON Viewer & Formatter for Chrome
Description
Reviews (2 cached)
This extension breaks websites that use <script type="application/json"> by displaying the raw JSON code instead of the rendered HTML I've debugged this issue and discovered that your JSON detection algorithm incorrectly assumes that any HTML content starting with { and ending with } is JSON. This breaks SPA applications that use <script type="application/json"> elements. During the initial render, these script tags may be the only content in the document body, causing your extension to misidentify the page as a JSON document. The problematic code: : "check_json_content" === e.action && (function () { var e = document.contentType; if (e && e.includes("application/json")) chrome.runtime.sendMessage({ action: "json_detected" }); else try { var t = document.body.textContent.trim(); t && t.length > 2 && ((t.startsWith("{") && t.endsWith("}")) || (t.startsWith("[") && t.endsWith("]"))) && (JSON.parse(t), chrome.runtime.sendMessage({ action: "json_detected" })); } catch (e) {}
on loop of dl via chrome ext link
Details
| Version | 1.0.2 |
| Updated | Apr 20, 2025 |
| Size | 87.27KiB |
| First Seen | Mar 25, 2026 |