Plugin for viewing JSON for Android studio?

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 .

+7
source share
5 answers

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

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 )

+26
source

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.

+4
source

For all InelliJ IDEs you can install this plugin.

Steps to install the plugin in Android Studio on Mac

  1. Click on Android Studio in the upper left corner
  2. Click on Preference
  3. Click on plugins
  4. Click on Storage Overview from the bottom pane.
  5. From the top JSON Viewer search search bar
  6. Click on install and restart Android Studio
  7. The size of the plugin is only 127.2KB

How to use it in Android Studio

enter image description here

It looks something like this enter image description here

+1
source

You can simply click on the .json file in your project and find "Mark as JSON Schema".

0
source
  1. Ctrl + Alt + Shift + Ins → Select JSon.
  2. Embed json
  3. Ctrl + Alt + Shift + R
0
source

All Articles