Sunday, 24 April 2016

What is JSON and its features ?


JSON stands for 
JavaScript Object Notation and used to transfer data between server and client (similar to XML)

Example
employee = {
   "empId" : "143011",
   "name" : "Shaan",
   "age" :  "31"
};


JSON features
  • Light-weight
    • Useful when data needs to loaded quickly and asynchronously (i.e. using AJAX)
  • Standard structure
    • Easy to write code as a standard format expected in program
  • Language independent
    • works well with modern programming languages
    • Easier to change server-side language without changing data format
  • Easy to read & write
  • Text based, human readable

No comments:

Post a Comment

Note: only a member of this blog may post a comment.