Monday, April 05, 2010

Deserializing JSON with gson

I have done lot of JSON serialization/deserialization using the gson library. I wanted just to share one very handy class that I have recommended twice this week with great results I heard from a couple of friend developers.

As its name indicates (GeneralObjectDeserializer) using it you will be able to Deserialize a JSON Object into a General Object. The resulting object is based on Map and Array, fair enough. No need to say the approach is simple and just works.

1 comment:

Dennis Doubleday said...

Ooh, thanks, this solved a problem that I was having with Map deserialization. I thought I was going to have to change libraries after trying all kinds of different workarounds.