krasa / GrepConsole

IntelliJ plugin - https://plugins.jetbrains.com/plugin/7125
Apache License 2.0
428 stars 57 forks source link

Pretty-format JSON #301

Open david-koleckar opened 2 months ago

david-koleckar commented 2 months ago

Is your feature request related to a problem? Please describe. Add default to pretty-format JSON output.

json output:

{"person": {"name": "Pavel", "surname":  "Marek"}}

change to:

{
  "person": {
    "name": "Pavel",
    "surname": "Marek"
  }
}

Describe the solution you'd like I guess pattern match with formatted replacement would be sufficient.

Additional context Would come quite handy, not sure if the JSON length in general would be a problem.