AiorosXu / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Map serialization fails with non-Primitive type (or String) keys #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The key gets serialized using the "toString()" method instead of actually
serializing the key object.

Original issue reported on code.google.com by joel.leitch@gmail.com on 17 Oct 2008 at 4:01

GoogleCodeExporter commented 9 years ago
The JSON specification requires that the Map keys are strings, not objects. So, 
I 
think Gson exhibits correct behavior.

Original comment by inder123 on 20 Oct 2008 at 1:03