Skip to content

jsog/jsog-jackson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Object Graphs with Jackson

This is a plugin for Jackson which can serialize cyclic object graphs in the JSOG format. It can both serialize and deserialize.

Caveat: With Jackson 2.5.0, polymoprhic (ie @JsonTypeInfo) objects cannot be deserialized from JSOG. Jackson 2.5.1 fixes the issue.

Source code

The official repository is (https://github.com/jsog/jsog-jackson)

Download

This plugin is available in Maven Central:

<dependency>
	<groupId>com.voodoodyne.jackson.jsog</groupId>
	<artifactId>jackson-jsog</artifactId>
	<version>please look up latest version</version>
	<scope>compile</scope>
</dependency>

It can be downloaded directly from [http://search.maven.org/]

Usage

To use this plugin, annotate any classes which may contain references with @JsonIdentityInfo(generator=JSOGGenerator.class).

@JsonIdentityInfo(generator=JSOGGenerator.class)
public class Person {
    String name;
    Person secretSanta;
}

Author

License

This software is provided under the MIT license