Hi all, I'm new to Jackson, and I was assigned to a project that uses it.

Our project A uses an external project B, where the model I need to 
serialize is defined. Most of the articles I read about Jackson rely 
heavily on adding annotations for doing the JSON serialization. Some issues 
I'm analyzing are:

+ the model is on an external project B, I would prefer not to touch it and 
define the serialization in our project A (that we control)

+ the model has a lot of classes for a very complex structure, and we need 
a custom JSON serialization from that structure, not the default where all 
the attributes appear on the JSON, so adding annotations would require 
touching every single class on a project that we don't manage

A related issue is, with annotations, I'm not sure what happens if we need 
to have two slightly different JSON serializations from the same class 
model.


So I'm trying to understand if it's possible to define serializations for 
each class in an external way (that is not tightly coupled with each class, 
I mean, without changing all the code and adding extra Jackson dependencies 
to those classes). Is that possible with Jackson?


Any pointers are very welcome!

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-user/2094988a-38e0-4dae-8f44-1399976410b8%40googlegroups.com.

Reply via email to