Please help me find a JSON viewer plugin for Android studio, such as the Eclipse JSON Editor plugin.
I tried the JSONFormatter and JSON viewer, but did not work as the Eclipse JSON Editor Plugin .
1) Open a new zero buffer ( Ctrl + Shift + A and enter "zero buffer").
Ctrl + Shift + A
2) Paste your json into the zero buffer
3) Change the file language to Json ( Ctrl + Shift + A and type "change file language")
4) Reformat code ( Ctrl + Alt + L )
Ctrl + Alt + L
I found a solution by creating a file with the .json extension inside your project. Then insert unstretched json content into the file, then press the alignment keys (the key combination may vary depending on your Android keyboard. For me, Ctrl + Alt + L ). All json data is indented.
.json
For all InelliJ IDEs you can install this plugin.
Steps to install the plugin in Android Studio on Mac
How to use it in Android Studio
It looks something like this
You can simply click on the .json file in your project and find "Mark as JSON Schema".
Ctrl + Alt + Shift + Ins
Ctrl + Alt + Shift + R