JSON viewer plugin for android studio?

I found the solution by creating a file with an extension of .json inside your project. Then paste the unaligned json content in this file, then press align keys(Keys combination may vary based on your Android studio Keymap. For me Ctrl + Alt + L). That's all json data is aligned with indents.


1) Open a new scratch buffer (Ctrl + Shift + A and enter "scratch buffer").

2) Paste your json into the scratch buffer

3) Change the file language to Json (Ctrl + Shift + A and enter "change file language")

4) Reformat Code (Ctrl + Alt + L)