Last active
July 3, 2023 03:27
-
-
Save niedzielski/53c98af986955053aaabcc8a19a62f39 to your computer and use it in GitHub Desktop.
Pretty print 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:(_ => { | |
const pre = document.querySelector('pre'); | |
pre.innerHTML = JSON.stringify(JSON.parse(pre.innerHTML), null, 2); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment