HTML and CSS Reference
In-Depth Information
Figure 11-7 displays the output of the application, if all goes well.
FIGURE 11-7 The Flickr Viewer application in action.
enhancing the application
As mentioned, JSON is not an exact science. So it's possible to get a JSON string that appears to be
invalid. If the JSON.parse method can't parse the downloaded text, your application just throws an
exception, as in Figure 11-8.
FIGURE 11-8 The Flickr Viewer dealing with invalid JSON content.
Search WWH ::




Custom Search