-
-
Save AndersDJohnson/e26f0d1de827e55402672534e29b3d5b to your computer and use it in GitHub Desktop.
Format JSON bookmarklet
This file contains 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:!function(){var n,e,r,i;n=window,e=document.body,r=JSON.parse,i=JSON.stringify,n.isf||(e.innerHTML="<pre>"+i(r(e.innerText),null,4).replace(/\"([^\:]*?)\:/g,'<span style="color:#9C3636">"$1:</span>')+"</pre>",n.isf=!0)}(); | |
//usage: | |
//save as bookmark and click it whenever you open a json response in a browser tab/window |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment