JSON Code to be Processed:


Indent Size   Select All   Expand Collapse Level 2 Level 3 Level 4 Level 5 Level 6 Level 7 Level 8

About JSON

JSON is a lightweight data interchange format used to describe data structures. It is based on a text format that is easy to parse and generate.

JSON has two structures

JSON, in simple terms, is the objects and arrays in JavaScript, so these two structures are objects and arrays. These structures can represent various complex structures.

1. Object: An object in JavaScript is represented by content enclosed in "curly braces" {}, with a data structure of {key: value, key: value, ...}, which is a key-value pair structure. In object-oriented languages, the key is the property of the object, and the value is the corresponding property value. It is easy to understand, and the method to retrieve the value is object.key to get the property value. The type of this property value can be a number, string, array, or object.

2. Array: An array in JavaScript is represented by content enclosed in "square brackets" [], with a data structure of ["java", "javascript", "vb", ...]. The way to retrieve values is the same as in all languages, using an index to get it, and the field value type can be a number, string, array, or object. With objects and arrays, two structures can be combined to form complex data structures.

Appendix: Recommended JSON Tools on This Site (We believe there is always one that suits you~O(∩_∩)O~)

1. Online JSON code inspection, validation, beautification, and formatting tool [Simple and easy-to-use formatting tool]:
    https://www.masters-tool.com/code/json

2. Online JSON formatting tool [Formatting tool with code highlighting and controllable indentation size]:
    https://www.masters-tool.com/code/jsonformat

3. Online XML/JSON mutual conversion [Simple and intuitive JSON format conversion tool]:
    https://www.masters-tool.com/code/xmljson

4. Online JSON code formatting/beautification/compression/editing/conversion tool [JSON editing tool with a graphical user interface]:
    https://www.masters-tool.com/code/jsoncodeformat

5. C language style/HTML/CSS/JSON code formatting and beautification tool [Powerful! Tool for editing C format code, HTML, CSS, and JSON]:
    https://www.masters-tool.com/code/ccode_html_css_json

6. JSON online conversion to C# entity class tool [For C# programmers to convert JSON format to C# class]:
    https://www.masters-tool.com/code/json2csharp

7. Excel/csv data to JSON format conversion tool [Powerful! Quickly convert Excel spreadsheet format to JSON data]:
    https://www.masters-tool.com/code/excel_col2json

8. Online JSON compression/escaping tool [Provides personalized compression, escaping, and Unicode conversion functions]:
    https://www.masters-tool.com/code/json_yasuo_trans

9. Online JSON to Java Bean code tool [For Java programmers dealing with Java Bean code]:
    https://www.masters-tool.com/code/json2javabean

10. Online JSON and GET request string mutual conversion tool [Can be used for URL transmission of GET requests and JSON data]:
    https://www.masters-tool.com/code/json2get