2

Recently I have used Jackson combined with Spring MVC for serializing domain objects. In order to reduce cyclic references I have used @JsonIdentityInfo like this:

@JsonIdentityInfo(generator=ObjectIdGenerators.IntSequenceGenerator.class, property="@modId")
public class Modulo implements Serializable {
...
}

What I am doing now is to receive those objects as JSON. I would like to deserialize the objects and access to them but I only can do that with first reference to each object. I cannot access to next references to same object. Mainly I don't know how to do that.

What I want to do is to create an HTML table with objects received. I would do this with Javascript or jQuery. Can you please help me? Thanks

Synchro
  • 35,538
  • 15
  • 81
  • 104
Spacemonkey
  • 1,725
  • 3
  • 20
  • 44

1 Answers1

0

It looks like Jackson 2.0+ is implementing a bit of JSON-LD here. Maybe jsonld.js is what you need?

pmorken
  • 764
  • 4
  • 11
  • Let me check it. Due I am working on other stuff it will take a while. Thanks for references. – Spacemonkey Feb 18 '13 at 15:59
  • @pkmorken I am reading JSON-LD specification and I have some doubts. 1) Can I use JSON-LD keeping my JSON generator (Jackson+Spring MVC) unalterable or should I use Node.js or any other extra backend component? 2) If I keep my configuration, should I include the `@context` to my JSON and `jsonld.js` will take care of this in front-end side? Thanks – Spacemonkey Mar 08 '13 at 17:20