Selecto AI

Writing & code · Extension

Clean JSON

Turn messy JSON into readable JSON.

Download 1 KB

Screenshot of the Clean JSON extension in the Selecto AI bar.

What it does

Checks the selected JSON and rewrites it with two-space indentation, so it is easy to read or share. If the JSON is invalid, a short notice says so and nothing is replaced.

When to use it

When to use it: Turn messy JSON into readable JSON. It belongs to the “Writing & code” family. Once installed, it joins the bar and works on the selected text.

Example

Before
{"name":"Ana","tags":["a","b"]}
After
{
  "name": "Ana",
  "tags": [
    "a",
    "b"
  ]
}

Install in 3 steps

  1. Download the file.
  2. In Selecto AI: Settings › Actions › Add an extension, choose the file (.js or .zip).
  3. The action appears in the bar.