r/java • • Aug 11 '26

[ Removed by moderator ]

/r/java/comments/1vljsj5/removed_by_moderator/

[removed] — view removed post

34 Upvotes

6 comments sorted by

11

u/repeating_bears Aug 11 '26

Is there a reason that it couldn't support Jackson annotations (or perhaps a subset of)? If I understood by the docs, they are not supported: https://fory.apache.org/docs/json/annotations

Having to migrate annotations, especially when some of them have identical names like JsonProperty is an extra hassle. It might help adoption if people didn't have to jump through an extra hoop

0

u/qolf1 Aug 11 '26

This could be solved by an OpenRewrite-receipt right?

1

u/repeating_bears Aug 11 '26

If there's a one-to-one mapping, yeah.

But how about an API which ships with Jackson-annotated classes or something. I've seen quite a few artifacts distributed which are like that. You wouldn't rewrite those because you don't maintain the source.

It would be a nicer experience if the same class with a single set of annotations could use any JSON "backend".

0

u/Prateeeek Aug 11 '26

Good work! I wish I could understand half of what's written here apart from the code gen thingy