Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

5.7. Introducing JSON

JavaScript objects and arrays are incredibly flexible. In fact, they are so well-known for their power and ease of use, that a special data format called JSON (JavaScript Object Notation) has now been adopted by many other languages.

JSON is mainly used as a way to store complex data (especially multi-dimension arrays) and pass the data from program to program. JSON is essentially another way of describing complex data in a JavaScript Object format. When you describe data in JSON, you generally do not need a constructor, because the data itself is used to determine the structure of the class.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint