What is JSON Data

What is JSON Data?

A JSON(JavaScript Object Notation) Data is a data containing object and  Array. JSON data is mainly used for exchange data from the server to web Application or Mobile Application.  it is a stander Data exchange format. JSON is very lightweight, text-based, human-readable, easily editable with any text editor.

You can refer below files. That file contains JSON Data.

{
    "firstName": "Racks",
    "lastName": "Jacson",
    "gender": "man",
    "age": 24,
    "address": {
        "streetAddress": "Udhna",
        "city": "San Jone",
        "state": "CA",
        "postalCode": "95221"
    },
    "phoneNumbers": [
        { "type": "home", "number": "27627" }
    ]
}

Write data in JSON format

JSON worked as a Key and value pair.

You can use JSON Formatter online tool that is the easiest way to write JSON format.
Because of JSON Formatter tools has below functionality:

  • JSON Validation.
  • Easy to add JSON pair.
  • Update JSON Key & Values.
  • Move up & below JSON Data.

and Much more…

You can check the JSON Format example below.
Ex:

{
"Name": "Test Data",
"Mobile": 123,
"Boolean": true,
"Pets": ["Cat", "Dog"],
"Address": {
"Permanent address": "USA",
"current Address": "AU"
}
}

Check more sample JSON format in the below link.
https://www.learningcontainer.com/sample-json-file/

 

You can refer more information related to JSON in below post

 

You can also call sample-json API directly.
https://tools.learningcontainer.com/sample-json.json

You need to save above code with .json extension.
You can refer below tools to display data in the proper format.

 and you can compare to the JSON file with the below tools.