Closed xfeep closed 9 years ago
After add
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<version>1.0.4</version>
</dependency>
It run successfully. But I can not understand that why this dependency is not included by jackson-datatype-jsr353.
The reason is that there are multiple possible implementations, and datatype module does not want to enforce use of specific one. Assumption is that user should already have an implementation to use, as otherwise JSR-353 does not make much sense. That is, Jackson is all around superior for JSON processing in general, and this module would only be used if some other code is already using JSR-353 implementation for something.
But I agree in that README should explain this dependency and why it may be needed.
Another note: I think the error message also indicates that API jar is bit flawed -- it really should not assume a default implementation, and should rather say it can not locate an implementation. But that's JSR-353 api bug and not something module can do much about.
@cowtowncoder Thank you!
Can you mention where you have added the above
@Vanbeek56 xml above would go in pom.xml
of Maven setup. For other build systems dependency needs to be added simlarly.
I just run a simple example from its document.
My jars