SynBioDex-archive / libSBOLj

deprecated libSBOL Java library
http://SynBioDex.github.com/libSBOLj
2 stars 0 forks source link

add read Json method to IOTools #30

Open mgaldzic opened 13 years ago

mgaldzic commented 13 years ago

for Deserializing a Collection with Objects of Arbitrary Types gson requires using Gson's parser API (low-level streaming parser or the DOM parser JsonParser) to parse the array elements and then use Gson.fromJson() on each of the array elements.

http://sites.google.com/site/gson/gson-user-guide#TOC-Collections-Limitations

I'll need to study this carefully as Custom Serialization and Deserialization may be needed to deserialize from json