My question was actually how to choose Gson parser instead of using Jackson parser. After some trying, I give up using Gson.
But thank you anyway. 2016-09-30 0:29 GMT+08:00 Christopher Currie <[email protected]>: > 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 a topic in the > Google Groups "dropwizard-user" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/dropwizard-user/_QT5T-YIb2s/unsubscribe. > To unsubscribe from this group and all its topics, 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.
