Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

what is JSON

JavaScript Object Notation 
	Its a key value pair 
	its popular light-weight way of transfering data 

	for example : 
	Lets try to create a json for Person Object 
			with name , age , isMarried , gender 

		Its ket value pair 
		the key is always String and need to be in quotation
		value can be :
			String 
			Number 
			Boolean 
			null 
			array 
			another json object


		This is one json with 5 fields 
		each key value pair should be separated by comma 
		{
			"name" 		: "Anna", 
			"age" 		: 18  , 
			"isMarried" : false , 
			"gender"	: "female", 
			"company"	: null 
		}
Comment

JSON stands for

JSON = JavaScript Object Notation
Comment

what is json used for

JSON 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.
It is a common data format with diverse uses in
electronic data interchange,including that of
web applications with servers
Comment

What is JSON?

● It is JavaScript Object Notation (is a minimal, readable format 
                                    for structuring data.)
● It is used primarily to transmit data between a server 
and web application, as an alternative to XML.
● Basically, a lightweight version of XML
● In Key: Value format
● Key is always in double quotes and value if 
  string its double quotes and if numbers no quotes
● It is purely based on http protocol, - 
  so it hits the link on the browser and see the results
Comment

what is json

|json stands for JavaScript Object Notation 
|json is a light weight for storing and transporting data
|json is readable 
|it has key : value format like python dictionary
Comment

This is the JSON


y = {};
 y.x =  "xxxxxxxxxxx";

y.yy = function(){return this;}
console.log(y.yy());
/*this is the y json itself*/
Comment

what does json stands for ?

Java Script Object Notation
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript press tab key 
Javascript :: keyup event 
Javascript :: how to add all values of array together js 
Javascript :: Check for mobile device 
Javascript :: cache request in vue 
Javascript :: vue electron name and icon 
Javascript :: stateless vs stateful components in react 
Javascript :: number pattern js 
Javascript :: to do list in javascript append appendchild input value 
Javascript :: js check collision 
Javascript :: react form 
Javascript :: react chat sheet 
Javascript :: form.reset function in javascript 
Javascript :: find class 
Javascript :: get 2nd td of tr 
Javascript :: javascript on enter key searchbox 
Javascript :: using arrow function and destructuring 
Javascript :: initialize a map js 
Javascript :: javascript remove first element from array 
Javascript :: js anonymous function es6 
Javascript :: js array split by comma 
Javascript :: js create md5 hash 
Javascript :: javascript string replace 
Javascript :: javascript ide 
Javascript :: jquery date format 
Javascript :: what is undefined 
Javascript :: get bytes from string javascript 
Javascript :: json.stringify 
Javascript :: js download file from webserver 
Javascript :: make canvas cover whole screen in html 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =