Open GoogleCodeExporter opened 9 years ago
This seems like a bad idea. Basically, your API is not consistent for your
clients. Sometimes, it spits out an array, sometimes it spits out the object.
The client will need to have unnecessary code dealing with this condition.
Original comment by inder123
on 4 Apr 2013 at 9:53
Unfortunately some API's are indeed not consistent. In my case it's something
that is not possible to change.
Ability to parse single object as a collection would be a great feature for the
GSON. It could be optional behavior that is defined with the separate flag
(like in the JACKSON).
But again such feature would make GSON even more powerful tool in this not
ideal world.
Please implement this request. For now I will use suggested patch. Thanks for
the workaround!
Original comment by denys.ni...@gmail.com
on 14 May 2013 at 7:21
Original issue reported on code.google.com by
mbreuer....@googlemail.com
on 22 Mar 2013 at 4:06