JSON Example


Prev Tutorial Next Tutorial

JSON Example

JSON example can be created by using object and array. Each object contain different data such as text, number, boolean etc.

JSON Object Example

Example

{  
  "employee": {  
  "name":  "Gaurav",   
  "salary":  30000,   
  "married":  true  
  }  
}  

JSON array Example

Example

{"employees":[  
    {"name":"Gaurav", "email":"[email protected]"},  
    {"name":"Sultan", "email":"[email protected]"},  
    {"name":"Hitesh", "email":"[email protected]"}  
]}  

JSON Example

Example

{"employees":[  
    {"name":"Gaurav", "email":"[email protected]"},  
    {"name":"Sultan", "email":"[email protected]"},  
    {"name":"Hitesh", "email":"[email protected]"}  
]}  

You can represent above example in xml like below;

Example

<employees>  
    <employee>
        <name>Gaurav</name>
        <email>[email protected]</email>
    </employee>
    <employee>
        <name>Sultan</name>
        <email>[email protected]</email>
    </employee>
    <employee>
        <name>Hitesh</name>
        <email>[email protected]</email>  
    </employee> 
</employees>

Prev Tutorial Next Tutorial

Advertisements




Download Projects

Advertisements

FREE Online Google Play APK Downloader

Buy APP Installs, Buy 100% Genuine Installs