Google is your friend: https://stackoverflow.com/questions/32270422/jackson-renames-primitive-boolean-field-by-removing-is
But vert.x "wraps" Jackson, unsure are you able to configure or even reach Mapper to apply these changes. HTH, T On Tue, May 21, 2019 at 8:21 PM Ahmed Kamal <[email protected]> wrote: > I have a data class like the following > > data class User(val id: String, > val name: String, > val isVerified: Boolean) > > When I'm trying to serialize it using io.vertx.core.json.Json.encode(user), > "which is uses Jackson underneath" I expect the result to be > > { > "id": "", > "name": "", > "isVerified": false > } > > but I got > > { > "id": "", > "name": "", > "verified": false > } > > -- > You received this message because you are subscribed to the Google Groups > "jackson-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jackson-user/48889489-58d1-4b69-8fb8-58844bf1ec19%40googlegroups.com > <https://groups.google.com/d/msgid/jackson-user/48889489-58d1-4b69-8fb8-58844bf1ec19%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "jackson-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-user/CAPLpRQLT1QSwE4%3DKRRgDgufhhDcSQtoihagTZ5o9F2LccEZ6LA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
