Chapter 3. Working with Real-time JSON
In the previous chapter, I introduced you to basic JSON, how JSON objects can be embedded into an HTML file, and how basic operations such as accessing keys can be performed on simple JSON objects. Now let us take a step forward and work with JSON objects that are bigger, more complex, and closer to the JSON that we would work with in real-time situations. In real-world applications, JSON can be retrieved either as a response from an asynchronous request or from a JSON feed. A website uses HTML, CSS, and JavaScript to provide a visually beautiful user interface. But there are cases where data vendors are only focused on getting the data. A
data feed serves their purpose; a feed is a crude way of supplying data so that others can reuse it to display the data on their websites or to ingest the data and run their algorithms on it. Such data feeds are big in size and cannot directly be embedded into the script
tag. Let us look at how external JavaScript...