JSON Example

Google Advertisements

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

Google Advertisements

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: [email protected] or 8076671483

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Download Projects

Media.net Advertisements


Buy Websites 9999595223

Buy Fresh and Payment Receive Media.net Account with Website. Contact on: [email protected] or 9999595223 Try this Keyword C++ Programs