javascript object notation
{
"first_name": "Taylor",
"last_name": "Hawkes",
"age": 31,
"address": {
"street": "954 Kazaam Lane",
"city": "Boulder",
"state": "CO",
"postalCode": "80303"
},
"emails": [
{
"type": "main",
"number": "[email protected]"
},
{
"type": "secondary",
"number": "[email protected]"
}
]
}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
}JSON = JavaScript Object Notation
Also in JavaScript:
- jquery get version
- javascript download current html page
- how to display first value of an array in jquery
- excel date to javascript date
- shift js mdn
- how many characters can fit in 1 line of div
- javascript array reorder elements
- funcao com o botao esc do teclado javascript
- how to check is the key of a localstorage is emopty
- nextjs carousel
- class extends
- picker change event react native
- google docs api word count
- find a single element in array of objects javascript
- react redux npm
- mapbox blurry popup
- chartts js 2 y axes label
- cors npm
- node js get file name without extension
- js set visibility on timeout
- jquery select box change event
- jquery clear form values
- jquery datepicker
- send data in datatable ajax