How to read JSON
We've already started to explore how to work with JSON and covered some of the basics of the language, but let's revisit this.
JavaScript Object Notation (JSON) is the common language used for storing and exchanging data and replaces the earlier language Extensible Markup Language (XML), which is still used by some older systems.
One key difference is that JSON is JavaScript. JavaScript was designed to run on the client browser, to enhance the experience for the user further than what could be achieved with HTML alone.
JSON is written in readable English text but has a clearly defined structure. There are a few rules when working with data for which JSON was deliberately designed:
- When you communicate between the client and server, the data should only be text. Modern dynamic web pages are rendered on the server and a copy of the HTML is sent to the client. This makes it difficult for hackers to determine the names of database or web page...