What is JSON?

JavaScript Object Notation (JSON), originally specified by Douglas Crockford, is an open-standard file format that uses human-readable text to transmit data objects consisting of attribute–value pairs and array data types (or any other serializable value).

JSON characteristics

  • A language-independent data format
  • Many modern programming languages include code to generate and parse JSON-format data
  • The official Internet media type for JSON is application/json
  • JSON filenames use the extension .json

Example of JSON

    "firstName": "config9",   
    "lastName": "COM",   
    "isAlive": true,   
    "age": 1999,   
    "address": {     
        "streetAddress": "29 2nd Street",     
        "city": "New York",     
        "state": "NY",     
        "postalCode": "10021-3199"   

How to format a JSON string

Many online tools provided on the internet, one of the best is: https://config9.com/json-formatter/

You can use this tool to format JSON with highlight to make your messy JSON string to be readable and more beautiful.

Related to JSON formats

  • GeoJSON – an open format for encoding a variety of geographic data structures
  • JSON-LD – JavaScript object notation for linked data, a W3C recommendation
  • JSON-RPC – remote procedure call protocol encoded in JSON
  • JsonML – markup language used to map between XML and JSON
  • S-expression – the comparable LISP format for trees as text.
  • SOAPjr – a hybrid of SOAP and JR (JSON-RPC)

Related to JSON binary encodings

  • BSON – with data types of specific interest to MongoDB
  • CBOR – loosely based on JSON
  • MessagePack – with data types loosely corresponding with JSON’s
  • Smile – based on JSON
  • UBJSON – binary format directly imitating JSON
  • EXI4JSON (EXI for JSON) – representation by means of the Efficient XML Interchange (EXI) standard

Our Awesome Tools