The configuration docs ( http://www.dropwizard.io/1.0.2/docs/manual/core.html#configuration) demonstrate the use of Jackson's @JsonProperty annotation, which can take a parameter to override the serialized name of the property.
On Thu, Sep 29, 2016 at 12:33 AM <[email protected]> wrote: > I have a field like > > @SerializedName("user-label") > private String userLabel = null; > > > The field in JSON is "user-label", but Dropwizard use "userLabel" to parse > it. > > > How can I solve this problem? > > -- > You received this message because you are subscribed to the Google Groups > "dropwizard-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
