image

© Risto Viita/Shutterstock

chapter14

Processing JavaScript Object Notation (JSON)

IN CHAPTER 13, “COMMUNICATING with AJAX,” you learned how to use JavaScript and AJAX to send and receive information to and from a remote server. Using AJAX, developers often retrieve XML data, which they then allow JavaScript to parse to accomplish a specific task. In this chapter, you will learn how to use a different data format from XML, the JavaScript Object Notation or JSON, to exchange data. The advantage of using JSON over XML is that JSON closely resembles JavaScript, which makes it easy for your code to process.

Learning Objectives

This chapter will examine ...

Get Introduction to Web Development Using HTML 5 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.