• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSON Quick Syntax Reference: Java APIs for JSON?

 
Greenhorn
Posts: 27
Google Web Toolkit Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JSON syntax has never seemed complicated. I have found JSON's pain point to be the plethora of Java implementations. Compare the Java libraries listed on JSON.org and you won't find a consistent treatment. I've written several projects with GWT, where there is one (very limited) JSON library for the client side (which wraps JavaScript), while it's take-your-pick on the server side. GWT also includes the com.google.web.bindery.autobean packages, yet another approach for POJO <-> JSON. How does this book help me get my head around these implementations? Is the book opinionated about implementation, or does it survey the different approaches and discuss trade offs?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See this topic for some discussion of backend JSON libraries.

I agree with your point. JSON and JavaScript enjoy (obviously) a close relationship, but JSON in many ways has impedance with languages such as Java. Because there is no standardized API that libraries need adhere to, each one has rolled their own, and choosing which to use can be perplexing (unless the choice has been made for you by choice of framework).

Personally, I'm most familiar with Gson from my time working with the Play! 1.2 framework.
 
Author
Posts: 21
6
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The book's topical content is JSON (Quick) Syntax Reference, and thus details how to construct JSON data structures. It does not cover what to do with the data structure post-parsing, and focuses on JavaScript more than Java.
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic