-
Notifications
You must be signed in to change notification settings - Fork 190
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
A default Map[Int,X] format is available at compile time, but fails at runtime #125
Comments
Yes, thanks for the report! |
Presumably the same applies to any old AnyVal... Using a Long as a key will be extremely common too. :) |
This is not a bug, this is JSON: http://json.org/ |
@maciejjaskowski, the bug is that Spray will find a format at compile time that cannot possibly succeed at runtime. :) |
Any movement on this? I have encountered the same issue with spray-json_2.10 v1.3.2 when serializing or deserializing maps with non-String keys |
so annoying not being able to serialize non-String keyed maps. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
I stumbled on the same bug just now, this is my approach to reproduce: https://github.com/wlk/spray-serialization-bug/blob/master/src/main/scala/Main.scala |
+1 |
If I copy the code from ancane@0b6c600 into my source and have it visible at implicit resolution time, then it gets picked up OK. If using IntelliJ I found I had to rebuild my entire project as it seems to cache stuff. |
I just tried to resolve the issue and improve the extensibility of the Map format #331. It would be kind if you would take a look at it :) |
The text was updated successfully, but these errors were encountered: