jetbrains-idedatagripintellij-datagrip

DataGrip view JSON in pretty


Is there a way to view JSON in a pretty format with lines wrapped when selecting the column in DataGrip? In MySQL Workbench there's a nice option of "Open value in Editor". The "Edit Maximized" does not wrap or fit in screen.

DataGrip: enter image description here

MySQL Workbench enter image description here


Solution

  • At the moment you need to invoke Reformat code action when you're inside a cell.

    Before: before

    After reformat: after

    Follow the issue DBE-6670

    Update: Starting from 2020.3 Toggle Formatting button in cells Value Editor (right-click on cell, choose Maximize) The formatting mode is available for one-line JSON and XML values. It's turned on by default.