A few days ago I asked about transferring a data structure from java to perl and vice versa, and one of the recos was JSON. I played with it (mostly using Gson for java) and it seems pretty nice. The only problem is that I have links inside my data structure (for other objects inside the same data structure). Currently, each such link is "fully translated", so each object is duplicated many times, and you cannot specify all these links pointing to the same object.
Is it possible to somehow transfer information from java to per and vice versa, preferably in a format suitable for human reading, which also stores link data instead of duplicating values?
source
share