You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Java the Jackson serialization library has a feature similar to flatten which is the @JsonUnwrapped annotation. Unlike flatten however it supports a pair of optional parameters prefix and suffix which are arbitrary String values that will be prepended or appended respectively to the flattened fields names. This is very useful when you have multiple instances of some struct that you want to flatten but you want to avoid name collisions. It would be great if serde could support a similar prefix and suffix argument to flatten.
The text was updated successfully, but these errors were encountered:
Ah nice, I had looked through the docs for flatten and didn't see any way to add a prefix, I didn't realize it was an entirely different attribute. Thanks.
In Java the Jackson serialization library has a feature similar to flatten which is the
@JsonUnwrapped
annotation. Unlike flatten however it supports a pair of optional parametersprefix
andsuffix
which are arbitraryString
values that will be prepended or appended respectively to the flattened fields names. This is very useful when you have multiple instances of some struct that you want to flatten but you want to avoid name collisions. It would be great if serde could support a similar prefix and suffix argument to flatten.The text was updated successfully, but these errors were encountered: