JSON Validator & Prettify

About JSON Valid.com

JSON Valid.com is a very powerful and simple validator and formatter/reformatter/prettify for JSON. JSON is a lightweight format for data-interchange. To use this tool just copy and paste or directly type in the editor above and let us validate and prettify all of your messed up JSON code.

You know what is JSON?

JSON is an acronym for "JavaScript Object Notation", pronounced as Jason, is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and arrays or any other serializable values. It's a common data format with diverse uses in electronic data interchange, including that of web or mobile applications with servers.

Why JSON?

We can talk about a ton of reasons for "why" you should use JSON, but the most important below:

  • JSON is independent of your OS, System or Programming Language
  • It is derived from JavaScript, for this reason it is perfect for web and mobile applications.
  • It is universal data representation understood by all systems.
  • It is human-readable, once you given proper formatting by using JSON Valid.com ;)
  • asda
  • Unlike XML, JSON data format doesn't use a complete structure. This makes it much more compact.
  • JSON is easy to use and analyze into logical syntactic components, especially in JavaScript.
  • A billion of libraries in almost all programming language

When use JSON instead of XML

JSON and XML are human readable formats and are language independent. Both of then have support for creation, reading and decoding in real world situations. Anyway JSON have some advantages over XML:

  • Verbose - XML is more verbose than JSON, so it is faster to write JSON for programmers and machines.
  • Arrays Usage - Once XML is used to describe the structured data, it doesn't include arrays. While JSON include and is perfect for arrays.
  • Parsing - JSON is really simple to parse by many languages. Observing only JavaScript we can use "eval" or even JSON.parse!

An example of JSON

The following example shows an usage of JSON to store information related to books.

{
  "book": [
    {
      "id": "01",
      "language": "Java",
      "edition": "third",
      "author": "Herbert Schildt"
    },
    {
      "id": "07",
      "language": "C++",
      "edition": "second",
      "author": "E.Balagurusamy"
    }
  ]
}

Credits

JSON Valid.com is free and Maintained by BCJ IT Solutions . Created by Eduardo , Felipe , Fernando and Herbert .