oasp / oasp4j

The Open Application Standard Platform for Java
Apache License 2.0
60 stars 303 forks source link

json: consider JSON-P and JSON-B #198

Open hohwille opened 9 years ago

hohwille commented 9 years ago

JSON-P is already available: http://repo1.maven.org/maven2/javax/json/javax.json-api/1.0/ and there are OSS implementations, e.g.: https://jsonp.java.net/

JSON-B still takes some time but as soon as it is available and a reliable implementation is available, we should have a look. This is one of the black spots where we currently lack a standard and are tight to jackson as implementation (it does its job good, but we want to use standards where ever possible and give freedom for people to exchange the implementation if they really need to).

hohwille commented 9 years ago

https://java.net/projects/jsonb-spec/pages/Home

hohwille commented 9 years ago

https://java.net/projects/jsonb-spec/sources/git/show

hohwille commented 9 years ago

I found that we have code in our sample that is directly using jackson in TOs what is undesired. Proprietary dependencies in business objects is not nice. We should do that if we have a reliable standard.

https://github.com/oasp/oasp4j/blob/beeb881cf9b37708d20acb0409a2213e764c230f/oasp4j-samples/oasp4j-sample-core/src/main/java/io/oasp/gastronomy/restaurant/salesmanagement/websocket/PositionStatusChangeTo.java

hohwille commented 9 years ago

According to the roadmap, we have to wait until around August 2015 till we can migrate to JSON-B. JSR 367 review is complete on 08 Sep, 2014