Hey, I was wondering if it is possible for body au...
# http4k
r
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
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
Thanks 🙂 I used Jackson annotations and it worked
🎉 1