https://kotlinlang.org logo
#http4k
Title
# http4k
r

Razi Kheir

11/07/2019, 3:15 AM
Hey, I was wondering if it is possible for body auto marshalling lenses to pick up @field:Json. I want to have different name for internal variable vs incoming one, it seems as though ignores that flag and doesnt unmarshal those fields
d

dave

11/07/2019, 5:28 AM
I’m not familiar with that annotation, but the lens system will use whatever is configured in the Json instance you’re using - so you might need to create a custom one if the default one doesn’t work. Annotations supported will vary depending on the lib that you are using.
❤️ 1
r

Razi Kheir

11/07/2019, 5:55 AM
Thanks 🙂 I used Jackson annotations and it worked
🎉 1
3 Views