Java equivalent of Doug Crockford cycle.js

I use JSON as my serialization technology between JavaScript and Java. I have an object graph that I want to serialize (there is no tree of objects either) and I want to maintain references to objects when it is serialized / deserialized.

Douglas Crockford cycle.js seems like a good solution for this. https://github.com/douglascrockford/JSON-js

But on the Java side, there is no equivalent library that I can find. I am currently using Gson and want to use an adapter, but I cannot find it yet.

On the Java side, there is a Jackson ObjectIdentity function. http://wiki.fasterxml.com/JacksonFeatureObjectIdentity

I could switch from Gsson to Jackson; but I can not find the equivalent JavaScript library.

Does anyone know of a Java library that is equivalent to Douglas Crockford cylce.js? Or a JavaScript library equivalent to the Jackson ObjectIdentity function?

+4
source share
1 answer

I ended up using JSOG , which supports Java jackson serialization and works well for me.

+1
source

Source: https://habr.com/ru/post/1534259/


All Articles