Use flexjson instead of gson to serialize into JSON