users@jersey.java.net

[Jersey] Question about using annotations for JSON

From: John Brooks <iresprite_at_gmail.com>
Date: Mon, 4 Aug 2014 16:29:22 -0400

Hi, all! I've done a little research on how to deal with JSON keys that use
hyphens, but most of the answers I see pertain to javascript or some other
Java library. When I'm creating a POJO for a JSON payload and I'm
processing JSON in my client code using MOX. How do I deal with the hyphens?

I've seen solutions for other libraries that use annotations (like
@JsonProperty("user-activation-code")); is there something similar for that
in this case?

Thanks in advance!