{ }jsonpret

From a wall of text to a useful structure.

JSON has six value types: objects, arrays, strings, numbers, booleans and null. Objects contain named members; arrays contain ordered values. Formatting reveals that structure without changing the values.

Paste, then inspect

The result updates after a short typing pause. Use two or four spaces for readability, or Minified for compact output. The source remains unchanged. Invalid input clears the previous result so an old conversion is never mistaken for a new one.

Finding a value

Tree view lets you expand collections and copy paths such as $.user.name or $.items[0]. Keys with punctuation use bracket notation. Search checks paths and scalar values, with at most 200 matching entries shown. Paths are navigation aids, not a JSONPath query engine; duplicate keys can share a path.

A JSON string inside JSON

Some logs contain a quoted and escaped JSON document. Unescape string decodes one string layer and validates the inner document. It produces a preview; Apply preview replaces the source only when you choose it.

Reference: RFC 8259. Open JSONPret.