Giter VIP home page Giter VIP logo

Comments (16)

cowtowncoder avatar cowtowncoder commented on July 25, 2024 237

Unlocking to allow use of reactions (use "thumbs up" to "vote"). Please no "+1" comments (content-containing comments welcome of course).

from jackson-annotations.

cowtowncoder avatar cowtowncoder commented on July 25, 2024 8

You are right in that annotation itself would be added here, but none of code handling it will be, which is why I think databind is actually better place for this.
But that's fine; we can even just have 2 issues, one for annotation, one for handling, mostly just to have entries for release notes for both.

As to multiple levels, I thought about that, and if that was to be supposed, I don't think we can assume '.' can be used as separator, since it is a legal property name character.
But changing this to allow sequence of ids is easy, like:

@JsonWrapped({ "contact_details", "address" })

and Java annotations also allow omitting arrays to just do single as well

@JsonWrapped("single")

from jackson-annotations.

sadlerjw avatar sadlerjw commented on July 25, 2024 1

+1. I'd love if this were added to @JsonProperty with the optional array syntax @cowtowncoder suggested:

@JsonProperty({"address", "housenumber"})

from jackson-annotations.

codeallthethingz avatar codeallthethingz commented on July 25, 2024

👍

from jackson-annotations.

geota avatar geota commented on July 25, 2024

👍

from jackson-annotations.

asafdav2 avatar asafdav2 commented on July 25, 2024

+1

from jackson-annotations.

mrolla avatar mrolla commented on July 25, 2024

This would save a lot of boilerplate. +1

from jackson-annotations.

natnan avatar natnan commented on July 25, 2024

👍

from jackson-annotations.

thomaseizinger avatar thomaseizinger commented on July 25, 2024

I would also like to see this feature.
Is there a workaround for this? Especially in combination with mixins?

from jackson-annotations.

cowtowncoder avatar cowtowncoder commented on July 25, 2024

Currently custom serialializer/deserializer would be the way to go. Or possibly converting serializer/deserializer using disposable wrapper classes.

from jackson-annotations.

meshuga avatar meshuga commented on July 25, 2024

+1 for

@JsonWrapped({ "contact_details", "address" })

from jackson-annotations.

Redliver avatar Redliver commented on July 25, 2024

+1

from jackson-annotations.

peruzzo avatar peruzzo commented on July 25, 2024

+1

from jackson-annotations.

 avatar commented on July 25, 2024

+1

from jackson-annotations.

djechelon avatar djechelon commented on July 25, 2024

+1

from jackson-annotations.

cowtowncoder avatar cowtowncoder commented on July 25, 2024

Enough voting -- locking issue for now, hoping github will add something better than needing to add more +1 comments. :)

from jackson-annotations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.