H ToolHub / 所有工具 / JSON 查看器
📋 JSON 工具

JSON 查看器

在线格式化、验证、查看 JSON 数据,支持树形折叠展开、语法高亮和字符串去转义,帮助开发者快速浏览和调试 JSON。

什么是 JSON 查看器?

JSON(JavaScript Object Notation)是一种轻量级的数据交换格式,广泛用于前后端数据通信和配置文件。JSON 查看器可以帮助开发者直观地浏览、检查和调试 JSON 数据。

本工具支持以下功能:

  • 格式化:将压缩的 JSON 字符串按层级缩进美化,便于阅读和调试
  • 压缩:去除多余空格和换行,减小数据体积
  • 验证:自动检测 JSON 语法错误,精确定位问题位置
  • 树视图:以可交互的树形结构展示 JSON,支持逐级折叠/展开对象和数组
  • 原始视图:以纯文本格式查看格式化后的 JSON
  • 全部展开/折叠:一键展开或折叠所有对象和数组节点
  • 字符串去转义:自动将 JSON 字符串中的转义序列(如 \n、\t、\uXXXX)还原为原始字符,方便查看中文和特殊字符
  • 复制:一键复制处理结果到剪贴板

所有数据仅在浏览器本地处理,不会上传到服务器,保障数据安全。

What is a JSON Viewer?

JSON (JavaScript Object Notation) is a lightweight data interchange format widely used for frontend-backend communication and configuration files. A JSON viewer helps developers intuitively browse, inspect, and debug JSON data.

This tool supports:

  • Format — Pretty-print compressed JSON with proper indentation for readability and debugging
  • Minify — Remove unnecessary whitespace and line breaks to reduce data size
  • Validate — Automatically detect JSON syntax errors and pinpoint problem locations
  • Tree View — Display JSON as an interactive tree structure, with per-node collapse/expand for objects and arrays
  • Raw View — View formatted JSON as plain text
  • Expand/Collapse All — One-click expand or collapse all object and array nodes
  • Unescape Strings — Automatically convert escape sequences (e.g., \n, \t, \uXXXX) in JSON strings back to their original characters for easier reading of CJK text and special characters
  • Copy — One-click copy of the result to your clipboard

All data is processed locally in your browser — nothing is uploaded to any server.