• 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
Ranch Hand
Posts: 111
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: 24081
54
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: 20310
110
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.
 
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!