• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

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

 
Ranch Hand
Posts: 114
1
  • Mark post as helpful
  • send pies
  • 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
  • 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: 24290
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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.
 
Bartender
Posts: 20568
120
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
Get me the mayor's office! I need to tell her about this tiny ad:
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!