Created
March 18, 2017 22:18
-
-
Save xc1427/6aadcb63507d05ac2bc54d6c7fc2ae5e to your computer and use it in GitHub Desktop.
To beautify the raw json string copied from local storage (Chrome DevTool). Execute this in command line.
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
:setlocal ft=json | %s/,"/,\r"/g | :%s/},/\r},/g | %s/{"/{\r"/g | %s/\S\@<=}/\r}/g | %s/:\S\@=/: /g | %s/,\S\@=/, /g | %normal! == |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment