Online JSON formatting tool| Beautification/Compression/Verification- GoTool Online Toolkit

开发工具指南

This tool provides an online JSON formatting tool and supports escape processing of JSON data. This tool can automatically check for errors in JSON data and accurately mark error locations, helping users quickly identify and fix format problems and improve data processing and development efficiency.

使用说明

feature introduction

  1. Format or compress the formatted json string and support escape
  2. Support escaping the string json contained in the string
  3. If the format is wrong, it will indicate which bit has the error.

example

1. In the correct format

{
    "name": "test", 
    "age": 10, 
    "addr": "Chengdu, Sichuan", 
    "cls_info": [{"name": "basketball class", "teacher": "teacher Zhang"}, {"name": "art class", "teacher": "Miss Li"}]
}

After treatment

{
    "name": "test",
    "age": 10,
    "addr": "Sichuan Chengdu",
    "cls_info": [
        {
            "name": "basketball class",
            "teacher": "Mr. Zhang"
        },
        {
            "name": "Art Class",
            "teacher": "Miss Li"
        }
    ]
}

2. Wrong format

{
    "name": "test", 
    "age": 10, 
    "addr": "Chengdu, Sichuan", 
    "cls_info": [{name": "basketball class", "teacher": "teacher Zhang"}, {"name": "art class", "teacher": "Miss Li"}]
}

After treatment

The error is as follows:

Sichuan and Chengdu "XXX" cls_info ": [{"

There is an error near XXX. Confirm whether the symbol is missing or redundant.

Note: an error occurred near XXX. It is recommended to search and check it.

3. Include json string

name=test&age=12&other={"name": "test", "age": 10, "addr": "Chengdu, Sichuan", "cls_info": [{"name": "basketball class", "teacher": "teacher Zhang"}, {"name": "art class", "teacher": "Miss Li"}]}

After treatment

name=test&age=12&other= {
    "name": "test",
    "age": 10,
    "addr": "Sichuan Chengdu",
    "cls_info": [
        {
            "name": "basketball class",
            "teacher": "Mr. Zhang"
        },
        {
            "name": "Art Class",
            "teacher": "Miss Li"
        }
    ]
}