Skip to content

Inconsistent JSON serialization of Item vs. List<Item> #3891

Answered by dpastore
dpastore asked this question in Q&A
Discussion options

You must be logged in to vote

I wasn't able to get the deployment descriptor to make a difference (assuming I defined it correctly, which is a stretch e.g., I referenced the eclipselink jar in resource-root path as I found the MOXy Provider is embedded directly in the jar.

However

I was finally able to work around this issue by removing EclipseLink from my pom and adding it directly to my Wildfly instance for general availability. In hindsight, maybe that's what I was supposed to do on Wildfly, rather than packaging it with the war?

For anyone out there hitting the same issue (or other inconsistent JSON serialization), here is what I did:

  1. Remove EclipseLink from your project. For Maven, remove it from your POM or se…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dpastore
Comment options

@jamezp
Comment options

@dpastore
Comment options

Answer selected by jamezp
@jamezp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants