Created
August 9, 2019 17:01
-
-
Save rsanchez/7e4aec146589d745d946cf25161de6dd to your computer and use it in GitHub Desktop.
JSON Formatter bookmarklet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:if("application/json"===document.contentType){window.module={};const e=document.createElement("script");e.src="https://cdn.jsdelivr.net/npm/[email protected]/dist/json-formatter.js",e.type="module",e.addEventListener("load",()=>{const e=JSON.parse(document.body.innerText);document.body.innerHTML="";const n=new window.module.exports.default(e,6);document.body.appendChild(n.render())}),document.head.appendChild(e)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment