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.

<em>{“name”:”value”}</em>

<strong>For ex</strong>

//Json Object

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

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.


Related FAQ

Here are some more FAQ related to this Article:

  1.   Laravel 5.8 Features and Updates
  2.   Ajax Image Upload without Refreshing Page using Jquery
  3.   Polymorphic relationships in Laravel 5.7 Example
  4.   Create Laravel Live Search Using Ajax
  5.   Refresh a HTML div without page load AJAX
  6.   PHP Laravel Datatable Server Side Processing using jQuery
  7.   Laravel Validation and Bootstrap Modal Popup Form Submit with Ajax
  8.   return view in new tab laravel Example Tutorial
  9.   jquery empty/null json object Example
  10.   Requests has() and hasFile() in Laravel 6