Java XML and JSON
- Length: 257 pages
- Edition: 1st ed. 2016
- Language: English
- Publisher: Apress
- Publication Date: 2016-06-16
- ISBN-10: 1484219155
- ISBN-13: 9781484219157
- Sales Rank: #1307634 (See Top 100 Books)
This book describes the popular XML and JSON data-interchange languages. You’ll explore each language and learn how to parse/create XML-based documents and parse JSON-based documents via various Java APIs. You will also learn how XML and JSON are applied and used in AJAX (and AJAJ), Android, Big Data, and Web Services contexts, all from the Java perspective.
Each chapter ends with select exercises designed to challenge your grasp of the chapter’s content. An appendix provides the answers to these exercises. A second appendix presents a list of developer questions about XML and JSON along with my answers to these questions.
What you’ll learn
- How to use Java, JSON and XML together to build services, big data
- How to use XML; parse XML documents with SAX, DOM, StAX; selecting nodes with XPath; and transform XML documents with XSLT
- What is JSON and how to explore parsing JSON content with Google GSON, Jackson, Quick JSON
- How to roll your own JSON APIs
- How to use XML and JSON with Ajax, Android, big data and web services
Who this book is for
This book is for intermediate or advanced Java programmers/developers.
Table of Contents
Chapter 1: Introducing XML
Chapter 2: Parsing XML Documents with SAX
Chapter 3: Parsing and Creating XML Documents with DOM
Chapter 4: Parsing and Creating XML Documents with StAX
Chapter 5: Selecting Nodes with XPath
Chapter 6: Transforming XML Documents with XSLT
Chapter 7: Introducing JSON
Chapter 8: Parsing and Creating JSON Objects with mJson
Chapter 9: Parsing and Creating JSON Objects with Gson
Chapter 10: Extracting JSON Values with JsonPath
Appendix A: Answers to Exercises