Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSON Jackson Shared references

I have an Object that is reference by two other Objects

I use Jackson to serialize my objects but have found my shared object is duplicated rather than reference.

The reason is as I understand that Jackson can only serialize by value and not by reference.

I have unsuccessfully looked around for some recommended solution.

Any and all help is appreciated.

current Jackson Lib 1.8.3

like image 733
HKalsi Avatar asked Jan 23 '12 15:01

HKalsi


1 Answers

Well time passed and Jackson 2.0 is out. Here is the requested feature ! I answer this so people like me coming after know its available

https://github.com/FasterXML/jackson-docs/wiki/Presentation-Jackson-2.0

like image 68
StackHola Avatar answered Nov 14 '22 00:11

StackHola