Live data from Hacker News

Java 9 features announced

jaxenter.com

1–10 of 228 posts

Re: Java 9 features announced

#2
The lack of an official JSON API has been a huge sore point for quite some time and has spawned dozens of libraries re-implementing the same thing over and over (GSON, Jackson, and even my own nanojson). I do hope that we avoid the DocumentBuilderFactory mistakes of XML and just end up with One True JSON implementation this time.

Re: Java 9 features announced

#4
post #2

The lack of an official JSON API has been a huge sore point for quite some time and has spawned dozens of libraries re-implementing the same thing over and over (GSON, Jackson, and even my own nanojson). I do hope that we avoid the DocumentBuilderFactory mistakes of XML and just end up with One True JSON implementation this time.

Im not sure i would call having multiple options a huge sore point. Chances are many of these options would still exist even if there was an official API.

FYI: Just looked at your nanojson, looks good. Might have to try it out, i like the fluent api for object creation.

Re: Java 9 features announced

#6
post #2

The lack of an official JSON API has been a huge sore point for quite some time and has spawned dozens of libraries re-implementing the same thing over and over (GSON, Jackson, and even my own nanojson). I do hope that we avoid the DocumentBuilderFactory mistakes of XML and just end up with One True JSON implementation this time.

Im not sure i would call having multiple options a huge sore point. Chances are many of these options would still exist even if there was an official API. FYI: Just looked at your nanojson, looks good. Might have to try it out, i like the fluent api for object creation.

>>Im not sure i would call having multiple options a huge sore point

It becomes one when serializing and de-serializing across a distributed application like xerces class path issues in different jvm implementations.Not a common sore point though!

>> Chances are many of these options would still exist even if there was an official API.

True and agreed.

Re: Java 9 features announced

#7
post #2

The lack of an official JSON API has been a huge sore point for quite some time and has spawned dozens of libraries re-implementing the same thing over and over (GSON, Jackson, and even my own nanojson). I do hope that we avoid the DocumentBuilderFactory mistakes of XML and just end up with One True JSON implementation this time.

Are you sure that's true? As you say, look at the "standard" API for XML parsing: a complete disaster. Dates, similar. Logging was slightly less disastrous because they took so much from Log4j, but they still made it unwieldy enough that the log4j guys ended up writing an API on top of that which everyone uses.

Now, props where props are due: Sun crushed the collections APIs compared to other languages at the time. And that more than makes up for everything else.

But I see little evidence that standardizing JSON parsing will improve things.

Re: Java 9 features announced

#9
a new json api to be released 2016. Hopefully by that time json is still relevant. I know most likely it will but at the pace of change that tech has, im not betting.

is there any contender to json at the moment?

Post reply on HN