Trexmi
Developer Ready

JSON Viewer

View JSON online as a readable tree, pretty-printed document, or flattened JSON path list with value types and depth controls.

Readable tree output Pretty JSON mode Flattened paths and values Value type labels
INPUT Developer source value *
0 chars0 words0 lines
Paste any valid JSON document to inspect its hierarchy, value types, and paths. Example: { "name": "John", "active": true }

Tool settings

Ctrl / ⌘ + Enter
JSON View Readable tree, formatted JSON, or flattened JSON paths.
About the tool

What JSON Viewer does

JSON Viewer displaying a structured JSON tree

JSON Viewer turns compact or deeply nested JSON into an easier structure to inspect. Instead of reading one long serialized string, you can view objects, arrays, keys, indexes, values and data types in a clear hierarchy. The tool is useful for API responses, configuration files, webhooks, application logs and test fixtures.

Choose Readable tree for a compact hierarchy, Pretty JSON when you need standard indentation, or JSON paths and values when you need to locate fields precisely. A maximum-depth control prevents very deeply nested documents from producing an unmanageable result. Processing happens through Trexmi without sending the document to an external viewing service.

JSON Viewer table of contents

How to use

  1. Paste valid JSON into the source field or upload a JSON file.
  2. Select Readable tree, Pretty JSON or JSON paths and values.
  3. Choose a maximum depth between 1 and 50 when the document is deeply nested.
  4. Run JSON Viewer and inspect objects, arrays, scalar values and their detected types.
  5. Use JSON Validator when the source is rejected, or open the result in JSON Formatter for standard formatting.
Built for the task

Why use JSON Viewer?

Focused controls, predictable output, and a workflow designed around this exact transformation.

01

Understand nested JSON quickly

Objects and arrays are displayed as a hierarchy with child counts, indexes and value types.

02

Locate exact field paths

Path mode lists scalar values using paths such as $.user.roles[0], which simplifies debugging and mapping.

03

Switch to standard pretty JSON

Pretty mode returns valid indented JSON that can be copied into documentation, tests or source code.

04

Control very deep documents

A configurable depth limit keeps recursive data readable and prevents enormous visual output.

Useful answers

Questions about JSON Viewer

Practical details about input, output, privacy, limits, and the best way to use this tool.

01 What does JSON Viewer do?

It displays valid JSON as a readable tree, pretty-printed JSON, or a flattened list of paths and values.

02 Does JSON Viewer modify my JSON?

No. It parses the document for display and leaves the source field unchanged.

03 Can it display nested arrays and objects?

Yes. Nested objects and arrays are processed recursively up to the selected maximum depth.

04 What is JSON path mode?

Path mode shows scalar fields using locations such as $.user.name and $.items[0].sku.

05 Why is part of the tree hidden?

The selected maximum depth has been reached. Increase it to inspect deeper child values.

06 Can I upload a JSON file?

Yes, the workspace accepts supported JSON text files within the active file-size limit.

07 Why is my JavaScript object rejected?

JavaScript object syntax may contain comments, single quotes or unquoted keys. Standard JSON does not allow those features.

08 How can I compare two JSON documents?

Use JSON Compare or JSON Diff Viewer after inspecting each document.

Learn JSON

Read the complete JSON Guide

Learn JSON objects, arrays, value types, validation, formatting, parsing, API workflows, and common syntax errors.

  • Objects, arrays, and values
  • Validation and formatting
  • API and parsing workflows
Read guide Practical explanations and examples

Choosing a JSON Viewer mode

Readable tree mode emphasizes hierarchy and labels each scalar as a string, integer, number, boolean or null value. Pretty JSON mode is best when you need valid JSON with standard indentation. Paths mode flattens scalar values into paths, making it easier to compare field locations, write mappings or diagnose missing properties.

Common JSON Viewer errors

The input must follow JSON syntax: property names and strings use double quotes, trailing commas are not allowed and comments are not part of standard JSON. JavaScript object literals are not always valid JSON. When the document fails, use the JSON Validator to locate the syntax error. A depth limit does not remove data from the original source; it only shortens the displayed hierarchy.

JSON inspection best practices

Remove secrets, tokens and personal data before sharing JSON. Validate large API responses before interpreting them. Use path mode to identify exact fields, then compare revisions with JSON Diff Viewer. Use JSON Schema Generator when the goal is to document a reusable structure rather than inspect one example. JSON syntax is defined by RFC 8259.