• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Java XML & JSON: Why do you name your book that way since these are different technologies ?

 
Ranch Hand
Posts: 147
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Jeff Friesen,


Since these technologies are deeply different how do manage to write about both in your book ?


Thanks.
 
Author
Posts: 86
5
Android Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ludoviko,

The first six chapters focus on XML and the last six chapters focus on JSON -- there is a clean separation between the two.  I present XML first because it predates JSON and because Java SE provides API support for XML.

I have some thoughts on what to include in a third edition of the book (if there is a third edition). For example, I'd include a chapter that combines XML and JSON because they complement each other. JSON is great for data interchange, whereas XML is great for data modelling.

Jeff
 
Sheriff
Posts: 27234
87
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't find them "deeply different" -- both of them are text-based formats which are used to store data in a structured way. And both of them prefer that structure to be a tree.

Admittedly they are different, in ways that Jeffrey has identified. However I tend to look at their similarities rather than their differences.
 
Saloon Keeper
Posts: 25622
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, I tend to group YAML among them as well. I'm a big YAML fan these days. It's used by Puppet/Hiera, Ansible, and doubtless other popular systems that I can't remember right now (Node Express?).

If I'm not mistaken, you don't get natural support for client-side parsing of YAML, but it's great for simple data, especially if it's hand-written.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic