Open GoogleCodeExporter opened 9 years ago
Probably has to do with the fact that this creates an anonymous class (which
Gson barfs over).
A workaround is is to instead call it like this
gson.toJson(list, new TypeToken<List<String>>(){}.getType())
Not completely brief, but at least it avoids the bug.
Original comment by cog...@gmail.com
on 6 Mar 2014 at 11:46
Jackson has no problem serializing it without any additional parameters. :(
Original comment by adam.di...@gmail.com
on 26 Mar 2014 at 10:52
Original issue reported on code.google.com by
Michael....@gmail.com
on 25 Jan 2014 at 1:16