-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't use toString when ser. complex keys of unknown type #63
Comments
This behaviour can not be changed by default as people expect to ser/de by default a erased Map as a Map<String, Object>. |
+1. Eagerly waiting for your fix. |
JSON object is not a good way to represent Java Maps in general, as it only works in a special case when Map keys are strings. This is why I am amazed that pretty much every JSON serialization framework (including the "standard", JSON-B) tries to do the same, and was pleasantly surprised when I saw that Genson actually treats some maps the way all Java maps should be represented in JSON: as arrays of entries, with keys and values. What I would really like to see is the ability to treat all the maps that way, with no special handling for string-, int-, long-keyed maps that is currently there. I know this breaks many assumptions and makes it more difficult to deserialize untyped objects into |
http://stackoverflow.com/questions/30057860/genson-serialization-for-maps-with-complex-keys
The text was updated successfully, but these errors were encountered: