Comment in JSON


Prev Tutorial Next Tutorial

Comment in JSON

JSON doesn't support comments. It is not a standard. But we can do with some tricks such as adding extra attribute for comment in JSON object, for example.

JSON Object Example

Example

{  
  "employee": {  
  "name":  "Gaurav",   
  "salary":  30000,   
  "married":  true  
  "comments":    "He is from Uttrakhand"  
  }  
}  

Prev Tutorial Next Tutorial

Download Projects

Google Adsense Advertisements
Free Classified Site – Bedpage

Yahoo Advertisements