Skip to tool

Kotlin Parse JSON Online

Parse JSON text and pretty-print output.

The output updates as you type. The tool processes input in your browser.

Worked example

Use double quotes for keys and strings. The browser parses JSON and displays an indented serialization of the value.

Sample input
{"name":"manuals","year":2026}
Sample output
{
  "name": "manuals",
  "year": 2026
}

Using this operation in Kotlin

The interactive result uses JavaScript. Kotlin String APIs expose character indexes and case conversion. Check whether your code targets JVM, JS, Native, or Wasm when depending on platform-specific utilities.

Kotlin reference