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
It would be helpful to have annotations to mark up POJOs for Transit, and an the associated Reader/Writer implementations, in the style of Jackson Annotations.
I've been reading and writing POJOs with Transit with runtime reflection on the getters and setters (using commons beanutils), but that solution isn't as flexible when it comes to things overriding the introspected name of a field, and overriding the class's Transit tag.
I'm thinking about a similar use case: Transition from jackson default serialization to transit.
For serializing stuff between java programs, jackson is really easy relative to transit. in writing pojos, you've already declared what type you want things to be and without any further coding jackson does a pretty good job. Especially with addons like jsr310 for example, all your specific time related is preserved.
if you're a non-jvm/java consumer of services doing this though, the type info in the pojo is lost except for strings and some number types.
So I'm thinking a transit module for jackson would be a good solution to easily transition json-producing java services.
It would be helpful to have annotations to mark up POJOs for Transit, and an the associated Reader/Writer implementations, in the style of Jackson Annotations.
I've been reading and writing POJOs with Transit with runtime reflection on the getters and setters (using commons beanutils), but that solution isn't as flexible when it comes to things overriding the introspected name of a field, and overriding the class's Transit tag.
This is the kind of construct I am thinking of:
The text was updated successfully, but these errors were encountered: