What are the API that does implement JSR-353 (JSON) [closed]
Asked Answered
C

2

13

I just found out that Jackson does not implement JSR-353 and we already designed the module.. so i am in a desperate hurry to find a replacement of this API to begin working ! :D

I searched an API that implements the standard but could not find any interesting result because we plan to code with the standard and force the system to use a particular implementation (the API i am desperately searching for)

Cyclopean answered 16/1, 2015 at 13:5 Comment(4)
I know that Jackson, Gson, etc.. does exist and are the better ones but the implementation thing is problematic so my question does simply mean "do you know about an api that implements the standard json jsr-353" so i thnik that it's not a recommandation or something like that no ?Cyclopean
some users on Stack Overflow are becoming "purists". This was a really interesting question as it is for me also hard to find a list of the apis that implement JSR353. When the rules start working against the users' interests, you have to start thinking about changing some...Stagestruck
Note that JSR-374, as an update to JSR-353, has been released and included in Java EE 8.Oneil
On the Software Recommendations Stack Exchange, see: Actual implementation of JSR-353 (JSON)?Floyfloyd
C
15

Reference implementation

Here is the reference implementation for JSR 353 and its successor JSR 374: JavaTM API for JSON Processing 1.1 in Java EE 8:

https://javaee.github.io/jsonp/

Binding

Related is JSR 367: JavaTM API for JSON Binding (JSON-B) and its reference implementation, Eclipse Yasson.

Ceres answered 16/1, 2015 at 13:13 Comment(4)
I think it is not a finalized project no ? clicking on "Documentation" directs me to a "Oracle : We're sorry, the page you requested was not found".Cyclopean
@maher.belkh The URL is wrong. I don't know if it changed or if they got it wrong, but the documentation is here.Gwin
Here are the API docs: json-processing-spec.java.net/nonav/releases/1.0/fcs/javadocs/…Ceres
They fixed the URL on site since then.Barathea
B
5

Genson

The Genson library claims to implement JSR-353.

https://code.google.com/p/genson/wiki/JSR353

I haven't tried this one myself though. I was recently also looking for a good JSON library, I tried 3 of them and finally settled with using Jackson as it best served my needs. The different thing is that I wasn't looking for a library which precisely implements the standard, I was just looking for something which is simple and does what I wanted it to do.


You can check Gson too, I guess (though it's not directly related to JSR-353).

https://code.google.com/p/google-gson/

Bantamweight answered 16/1, 2015 at 13:12 Comment(6)
I was going to settle for Jackson but when i found out that it does not implement the standard that become impossible. And i cannot afford to use the application server to use its own implementation (if he has one which i doubt) so the need to have an API that does implement JSR-353 is mandatory unfortunately. When you say Gson is not directly related to JSR-353 you mean there is a chance that it could be ?Cyclopean
@maher.belkh I mean, I don't see it in their docs that it's related. I am not sure.Bantamweight
I am Genson author, indeed it implements jsr 353 and just worksSpurry
Both project has moved to GitHub. New Genson page is here and Gson moved here.Oneil
@Spurry What about Genson supporting JSR 374, the successor to JSR 353? And does your binding feature implement JSON-B defined in JSR 367? I suggest adding to your FAQ to make this known.Floyfloyd
@BasilBourque no it doesn't implement JSONB.Spurry

© 2022 - 2024 — McMap. All rights reserved.