JSON Fundamentals Tutorial with Examples

JSON Fundamentals Tutorial with Examples

Today, We want to share with you JSON Fundamentals Tutorial with Examples.
In this post we will show you An Introduction to JSON, hear for What is & Why JSON? we will give you demo and example for implement.In this post, we will learn about Introduction to JSON (JavaScript Object Notation) with an example.

Introduction: What is JSON

In this post, we will learn about Json.

Now in this post, I will explain about what is JSON.

  • JSON stands for JavaScript Object Notation.
  • It is a lightweight data interchange format that can be used to send or recieve the data between the client browser and the web server.
  • JSON formate is “self-describing” and easy to understand.
  • It is language independent.
  • The file type for JSON files is “.json”.
  • The MIME type for JSON text is “application/json”.
jQuery 15 Powerful Tips and Tricks for Developers and Web Designer

JSON Syntax

JSON data is specified in name-value pairs.

{“name”:”value”}

For ex

//Json Object

var Employee= {"name":"Jaydeep Gondaliya","gender":"M","dept":"HR","address":"Rajkot"};

var Employee= {“name”:”Jaydeep Gondaliya”,”gender”:”M”,”dept”:”HR”,”address”:”Rajkot”};

name, gender, dept, address are the properties of json object and seprated by comma(,).

In JSON, the values must be one of the data types given below.

  • null
  • a string
  • a number
  • an object (JSON object)
  • an array
  • a boolean
Introduction To jQuery

The data can be stored in JSON format, as shown below.

  • JSON Object.
  • JSONArray.
  • Nested Json Object

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about JSON Fundamentals Tutorial with Examples.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Comment