Skip to content

A more robust version of the Gson Java<->JSON serialisation library. This can handle vague classes and circular references.

License

Notifications You must be signed in to change notification settings

good-loop/flexi-gson

Repository files navigation

flexi-gson

A more robust version of the Gson Java - JSON serialisation library. This can handle vague classes and circular references.

This repository is setup for SoDash's use. If you wish to use this project, please contact us.

Handling "Vague" classes

These occur when the container doesn't specify the type, which is problematic for json.

E.g. suppose you have the Java:

class Foo {
	Object x = new Bar();
}
class Bar {
	String y = ":)";
}

This will produce the json:

{"x":{"y":":)"}}

Note that the type information -- that x is an instance of Bar -- has been lost.

This case happens all the time in Java, either through using interfaces or Maps. So we'd like to handle it!

The Parent GSON: Version ??

This version of GSON was forked from ??

TODO now that gson has moved form Google Code to Git and GitHub -- it'd be good to fork the official repo and edit that.

About

A more robust version of the Gson Java<->JSON serialisation library. This can handle vague classes and circular references.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%