gson-comments/gson
Jesse Wilson 25c6ae177b Down to 22 failing tests.
Consolidated all of the different code paths that we use to construct instances. We now have an ObjectConstructor class that knows what type it constructs; this means that we don't need to ever do reflection to lookup a constructor at construction time.

Cleaned up some buggy type adapters, particularly around handling of null.

Removed dead code for object graph navigation.

Moved some classes into 'internal' so they are visible to the 'bind' subpackage.

Turned some TypeAdapterFactory/TypeAdapter pairs inside out so that the TypeAdapter is now the inner class. This is necessary so that the factories can take parameters.

Added an API to request the 'next' type adapter for a type. This allows type adapters to compose other type adapters. We're using this in two places:
 - where the user has excluded a type from serialization but not deserialization, we need to use the "default" deserialization but interpose null on serialization. We create a type adapter that delegates for one and returns null for the other.
 - similarly when a DOM type serializer is registered but no deserializer, or vice versa.
This is the biggest change to the MiniGson core.

For backwards compatibility, return null for the empty string.

Simplify JsonSerializationContext/JsonDeserializationContext to simply call through to GSON. SerializeDefault is currently unsupported.

More useful error messages when calling getAsBoolean on a JsonNull.

Remove currently unused MemoryRefStack. We might need this back again, though wiring it back in will be much more difficult because we don't interject ourselves between the users' various type adapters.
2011-09-11 07:04:56 +00:00
..
docs/javadocs Javadocs for release 1.7.1 2011-04-13 20:41:54 +00:00
src Down to 22 failing tests. 2011-09-11 07:04:56 +00:00
assembly-descriptor.xml removed assembly-descriptor.xml from Gson jar 2011-04-13 18:26:51 +00:00
GSON 2.0 NOTES.txt Forbid custom serializers for primitive types (so we can avoid boxing in the reflective and array adapters) 2011-09-09 06:26:21 +00:00
LICENSE Updating License to contain the full text. 2011-04-12 21:21:39 +00:00
pom.xml fixed issue 339 2011-07-01 21:59:36 +00:00
README moved gson as a project under trunk 2008-09-01 03:13:32 +00:00

Gson is a Java library that can be used to convert a Java object into its 
JSON representation. It can also be used to convert a JSON string into an 
equivalent Java object. Gson can work with arbitrary Java objects including 
pre-existing objects that you do not have source-code of.

Complete Gson documentation is available at its project page 
http://code.google.com/p/google-gson