Open acruise opened 9 years ago
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
+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 https://github.com/ancane/spray-json/commit/0b6c60030c169fabbae9fe434fd23d0506944abd 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 https://github.com/spray/spray-json/pull/331. It would be kind if you would take a look at it :)