Json bug
brian
28 Jun 2012
It isn't really a bug. JSON only supports string keys for its maps, and the input here is Int keys. We could potentially convert any key type to strings, but that doesn't seem like the correct behavior (better to do that outside of JSON API yourself).
SlimerDude
28 Jun 2012
Could this ClassCastException not be caught and a more informative exception thrown instead? Something with a message like, "JSON only supports Str keys for maps" .
I've always been a keen believer of delivering as much context info to the developer as possible - esp when writing frameworks.
Akcelisto
29 Jun 2012
+1 for more informative exception
brian
29 Jun 2012
+1 for more informative exception
agreed, I pushed a fix
Akcelisto
28 Jun 2012
Result: