JSON Tutorials
- What is Json
- Json Example
- Json Object Example
- Json with php
- How to Convert Data from MySQL to JSON using PHP
- How to store json Data into MySQL database using PHP
- How to insert json data into mysql database using PHP
- validate json string in php
- Json with AJAX
- Json with javascript
- Json Program example
Important Links
JSON Example.
A JSON object contains data in the form of key/value pair. The keys are strings and the values are the JSON types. Keys and values are separated by colon. Each entry (key/value pair) is separated by comma. The { (curly brace) represents the JSON object.
{
"employee": {
"name": "itechtuto",
"salary": 20000,
"status": true
}
}
JSON Array example
The [ (square bracket) represents the JSON array. A JSON array can have values and objects.
["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
example of JSON array having objects.
[
{"name":"mahab", "email":"mahtab@gmail.com"},
{"name":"Bob", "email":"bobraj@gmail.com"}
]
{"name":"mahab", "email":"mahtab@gmail.com"},
{"name":"Bob", "email":"bobraj@gmail.com"}
]