Inderjeet Singh
0c3b9670f0
Ensuring that UTC date adapter serializes nulls correctly
2014-12-05 22:12:54 +00:00
Inderjeet Singh
f0f9ce42f4
using only Jackson iso8601 implementation for UTC date adapter
2014-12-05 08:28:25 +00:00
Inderjeet Singh
0e3708be82
updated UTC type adapter to support JDK 1.6 using Jackson ISO8601 parsing util
2014-12-05 07:41:08 +00:00
Inderjeet Singh
255f2e2847
added a sample Date type adapter for UTC
2014-12-05 00:16:24 +00:00
Jesse Wilson
af4879dbb7
Move interceptors from 'alpha' to 'extras'.
...
This makes the feature less risky to use! It now uses our
TypeAdapterFactory infrastructure rather than relying on
parallel infrastructure.
2012-10-23 17:36:30 +00:00
Jesse Wilson
2e6b22fa2e
Test that GraphAdapterBuilder works with multiple entity types.
2012-01-01 15:57:29 +00:00
Jesse Wilson
efde6674e1
Test that GraphAdapterBuilder works with collections.
2012-01-01 15:48:01 +00:00
Jesse Wilson
6cca23c172
Get GraphAdapterBuilder working for serialization and deserialization using InstanceCreators to get a sneak peek at a value under construction.
2012-01-01 13:42:44 +00:00
Jesse Wilson
4057b98bab
Implement all but the most difficult part of graph type adapter's deserialization. The catch is we want to return an instance that we don't have yet. It's on the stack, but we don't have a handle to it because it's inside the 'nextTypeAdapter' who is busy populating its fields.
2011-12-30 08:27:24 +00:00
Jesse Wilson
6ec6caa49d
New extension: handle circular references.
...
Serialize graphs of objects by assigning each instance a generated ID and writing the complete graph out as a list. The output for a cycle of Rock/Scissors/Paper looks like this:
{
'0x1':{'name':'ROCK','beats':'0x2'},
'0x2':{'name':'SCISSORS','beats':'0x3'},
'0x3':{'name':'PAPER','beats':'0x1'}
}
This is work towards issue 137. The hard part is going to be deserializing that back into a graph.
2011-12-30 07:34:43 +00:00
Jesse Wilson
bcaf56079c
Register runtime type adapters using the proper factory-specific APIs.
2011-12-30 06:55:56 +00:00
Jesse Wilson
46e65a77c5
Convert RuntimeTypeAdapter to a TypeAdapterFactory; this avoids the need for serializeDefault()
2011-09-28 19:14:46 +00:00
Jesse Wilson
60e6ed912d
Promote MiniGson to gson.internal.bind
2011-08-03 00:25:10 +00:00
Jesse Wilson
4b042671af
Cleanup after experimenting with specializing BoundField by type (ie. Field.setInt() to avoid autoboxing)
2011-07-15 14:37:05 +00:00
Jesse Wilson
041d499a7c
Fix serialization where one type depends (possibly indireclty) on itself!
2011-07-12 19:39:27 +00:00
Jesse Wilson
c6bef30057
Array support.
2011-07-11 22:26:53 +00:00
Jesse Wilson
95a345234f
MiniGSON Map adapters and support for nulls.
2011-07-11 21:45:09 +00:00
Jesse Wilson
c5f1df1017
MiniGSON prototype!
2011-07-11 16:46:52 +00:00
Inderjeet Singh
62675b7f46
Added serializeDefault and deserializeDefault methods in contexts that only invoke system type adapters on the top-level object.
...
With this, the RuntimeTypeAdapterTest passes.
2011-07-01 21:29:20 +00:00
Jesse Wilson
9ad3358728
Document RuntimeTypeAdapter
2011-06-06 05:40:13 +00:00
Jesse Wilson
3d50a6b72a
New failing test for RuntimeTypeAdapters!
2011-05-27 18:47:31 +00:00
Jesse Wilson
d93825ba72
First draft of RuntimeTypeAdapters
2011-05-14 02:04:17 +00:00