Skip to main content
  • Book
  • © 2019

Java XML and JSON

Document Processing for Java SE

Apress

Authors:

  • Provides fully updated coverage from a Java 11 perspective
  • Includes coverage of Oracle’s JSON-P API in a Java SE context
  • Written by a JavaWorld.com columnist and respected Java expert

Buy it now

Buying options

eBook USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (13 chapters)

  1. Front Matter

    Pages i-xviii
  2. Exploring XML

    1. Front Matter

      Pages 1-1
    2. Introducing XML

      • Jeff Friesen
      Pages 3-34
    3. Parsing XML Documents with SAX

      • Jeff Friesen
      Pages 35-65
    4. Selecting Nodes with XPath

      • Jeff Friesen
      Pages 139-164
    5. Transforming XML Documents with XSLT

      • Jeff Friesen
      Pages 165-183
  3. Exploring JSON

    1. Front Matter

      Pages 185-185
    2. Introducing JSON

      • Jeff Friesen
      Pages 187-203
    3. Parsing and Creating JSON Objects with Gson

      • Jeff Friesen
      Pages 243-298
    4. Extracting JSON Values with JsonPath

      • Jeff Friesen
      Pages 299-322
    5. Processing JSON with Jackson

      • Jeff Friesen
      Pages 323-403
    6. Processing JSON with JSON-P

      • Jeff Friesen
      Pages 405-457
  4. Appendixes

    1. Front Matter

      Pages 459-459
    2. Answers to Exercises

      • Jeff Friesen
      Pages 461-518
  5. Back Matter

    Pages 519-528

About this book

Use this guide to master the XML metalanguage and JSON data format along with significant Java APIs for parsing and creating XML and JSON documents from the Java language. New in this edition is coverage of Jackson (a JSON processor for Java) and Oracle’s own Java API for JSON processing (JSON-P), which is a JSON processing API for Java EE that also can be used with Java SE. This new edition of Java XML and JSON also expands coverage of DOM and XSLT to include additional API content and useful examples.


All examples in this book have been tested under Java 11. In some cases, source code has been simplified to use Java 11’s var language feature. The first six chapters focus on XML along with the SAX, DOM, StAX, XPath, and XSLT APIs. The remaining six chapters focus on JSON along with the mJson, GSON, JsonPath, Jackson, and JSON-P APIs. Each chapter ends with select exercises designed to challenge your grasp of the chapter's content.An appendix provides the answers to these exercises.





What You'll Learn
  • Master the XML language
  • Create, validate, parse, and transform XML documents
  • Apply Java’s SAX, DOM, StAX, XPath, and XSLT APIs
  • Master the JSON format for serializing and transmitting data
  • Code against third-party APIs such as Jackson, mJson, Gson, JsonPath
  • Master Oracle’s JSON-P API in a Java SE context




Who This Book Is For

Intermediate and advanced Java programmers who are developing applications that must access data stored in XML or JSON documents. The book also targets developers wanting to understand the XML language and JSON data format.

Authors and Affiliations

  • Dauphin, Canada

    Jeff Friesen

About the author

Jeff Friesen is a freelance teacher and software developer with an emphasis on Java. In addition to authoring Java I/O, NIO, and NIO.2 (Apress), Java Threads and the Concurrency Utilities (Apress), and the first edition of this book, Jeff has written numerous articles on Java and other technologies (such as Android) for JavaWorld, informIT, Java.net, SitePoint, and other web sites. Jeff can be contacted via his web site at JavaJeff.ca or via LinkedIn (JavaJeff).

Bibliographic Information

Buy it now

Buying options

eBook USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access