OK, that makes sense. I think you're using an older version of Gson
because it should now throw a JsonParseException that is wrapping an
IllegalArgumentException.
Anyways, to solve your problem by copying our MapTypeAdapter and wrap
it in your own type converter. You can then take the incoming type,
which should be "Map.class" and create a ParameterizedType using new
TypeToken<Map<String, myBean>>() {}.getType(); and then delegate to
our MapTypeAdapter implementation with this type instead of Map.class.
We are considering adding the ability to serialize a Parameterized
type such as Collections without requiring the "TypeToken" thing.
Hope this information is helpful.
Joel