Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Java XML and JSON
Friesen J., Apress, New York, NY, 2016. 257 pp. Type: Book (978-1-484219-15-7)
Date Reviewed: Dec 9 2016

Java XML and JSON can be used as both a self-study guide and a reference for Extensible Markup Language (XML) and JSON documents and their processing in Java. The book is ideal for Java programmers needing to develop applications that read, write, or translate either format. No particular background on XML, XSLT, or JSON is assumed or required.

Readers will get a good understanding of the basic language concepts as well as a working knowledge of parsing methods for hierarchical documents. Each chapter is concisely written and has plenty of code examples (which can be downloaded and run), as well as implementation notes, a review test, and a summary.

The first part of the book covers in detail XML-related technologies, like XML documents, XML schema, document type definitions (DTDs), and XSLT, starting from basic language features.

XML parsing with stream and tree-based methods using SAX, the document object model (DOM), and StAX (the streaming application programming interface (API) for XML) are also exemplified in Java code, as is XPATH, the traversal query language for XML documents. Advanced XPATH features like user-defined functions and variables are also shown.

The discussion of JSON in the second half of the book should be easy to follow once the reader has gone through the XML chapters. Given that a JSON document is much simpler than XML and can be viewed as a JSON object with nested JSON objects and arrays, the same XML parsing techniques (streaming, tree-based) apply. The code examples use either mJson or Gson, but the same principles can be extrapolated to other popular libraries like Jackson or json4j. The final discussion and examples on JsonPath should also be familiar to readers that have worked out the examples on XPATH in chapter 5.

In summary, Java XML and JSON is an efficient, practical guide for developers, providing the background to write applications to process and query complex documents in a little over 200 pages, most of which are devoted to code examples.

Reviewer:  Rosario Uceda-Sosa Review #: CR144963 (1702-0083)
Bookmark and Share
  Reviewer Selected
Featured Reviewer
 
 
Object-Oriented Programming (D.1.5 )
 
 
Java (D.3.2 ... )
 
 
XML (I.7.2 ... )
 
 
Document Preparation (I.7.2 )
 
 
Language Classifications (D.3.2 )
 
 
Reference (A.2 )
 
Would you recommend this review?
yes
no
Other reviews under "Object-Oriented Programming": Date
Object-oriented programming systems, languages, and applications
Paepcke A.  Object-oriented programming systems, languages, and applications,Phoenix, AZ,Oct 6-Oct 11, 1991,1991. Type: Whole Proceedings
Oct 1 1992
Object lifecycles
Shlaer S., Mellor S., Yourdon Press, Upper Saddle River, NJ, 1992. Type: Book (9780136299400)
Apr 1 1993
Object-oriented programming
Voss G., Osborne/McGraw-Hill, Berkeley, CA, 1991. Type: Book (9780078816826)
Oct 1 1992
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy