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

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

PREVIOUS NEXT
Code Example
Javascript :: react button onclick components refined #1 
Javascript :: how to generate a random number between 1 and 6 in javascript 
Javascript :: calculate percentage in javascript 
Javascript :: finding the smallest number other than 0 in an array javascript 
Javascript :: react extends component with style 
Javascript :: reloading init state 
Javascript :: converting jsObject to JSON 
Javascript :: store in memory an array (two-dimensional) 10rows x 10columns with random integers and show the number of elements between 10 and 20 javvascript 
Javascript :: remove nth character from string javascript 
Javascript :: react.js form 
Javascript :: javascript destructure multiple levels 
Javascript :: Another _.extend Example 
Javascript :: proxy{} map in console 
Javascript :: Use a stack to convert the infix expression x*y-2 into post-fix 
Javascript :: javascript load on error 
Javascript :: add item or nothing array js 
Javascript :: lwc reduceErrors showtoast 
Javascript :: routing with django and react 
Javascript :: javascript object duplicate keys 
Javascript :: Search an elemnt in a sorted and rotated array 
Javascript :: jquery code convert into javascript online 
Javascript :: firebase hosting rewrite function You need to enable JavaScript to run this app. 
Javascript :: delete file firebase angular 
Javascript :: express check request type 
Javascript :: how to use handlebars.registerhelper if null 
Javascript :: counter plus minus for quantity 
Javascript :: sample asynchronous 
Javascript :: Pointing Subdomain To A Next.js Page On Vercel 
Javascript :: dependent drop down list in jquery 
Javascript :: AngularJS two different actions in ng-submit 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =