JSON Tutorial for Beginners with examples including JSON Overview, JavaScript Object Notation, Syntax, DataTypes, Objects, Schema, Comparison with XML, etc.
1. JSON tutorial | JSON tutorial for
beginners
JSON TUTORIAL FOR BEGINNERS WITH EXAMPLES INCLUDING JSON
OVERVIEW, JAVASCRIPT OBJECT NOTATION, SYNTAX, DATATYPES,
OBJECTS, SCHEMA, COMPARISON WITH XML, ETC.
2. Introducing JSON
JSON Stands for JavaScript Object Notation.
JSON is used for exchanging and storing data.
JSON is an easier to use alternative to XML.
JSON is a lightweight data-interchange format.
JSON is language independent.
JSON is “self-describing” and easy to understand.
3. JSON example defines Students object with an
array of three students:
{"students":[
{"FirstName":"ravi", "Lastname":"srivastva"},
{"FirstName":"Anju","LastName":"Anju"},
{"FirstName":"Sanjeev","LastName":"rai"}
]}
4. The following XML example also defines
Students object with 3 students records:
<students>
<student>
<FirstName>ravi</FirstName>
<LastName>srivastva</LastName>
</student>
<student>
<FirstName>Anju</FirstName>
<LastName>Anju</LastName>
</student>
<student>
<FirstName>Sanjeev</FirstName>
<LastName>rai</LastName>
</student>
</students>