gurudk / google-gson

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

deserialize arbitrary collections of objects #510

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add a config option to Gson so that it can optionally serialize an object's 
class along with its other fields (simply a String com_google_gson_java_class = 
"com.package.SomeClass"). Then when deserializing an arbitary collection of 
objects they could be deserialized correctly.

This seems like a quick/easy fix to overcome a pretty big limitation.

Original issue reported on code.google.com by rhd...@gmail.com on 26 Apr 2013 at 4:46