[racket] json module bug?

From: Danny Yoo (dyoo at hashcollision.org)
Date: Tue Dec 4 15:24:23 EST 2012

On Tue, Dec 4, 2012 at 12:21 PM, Scott Klarenbach <scott at pointyhat.ca>wrote:

> Is this a bug with the json module, or am I missing something about the
> implementation?
>
> It seems it crashes when serializing a hashtable that has strings for
> keys.  Symbols work fine.
>
>
According to the documentation in:

    http://docs.racket-lang.org/json/index.html

jsexprs have a particular shape (see the docs for jsexpr?).  The hash
tables in jsexprs need to have the shape:

   (hasheqof symbol? jsexpr?)


So no, technically the hash you were trying to translate isn't a "jsexpr in
the strict sense, so you're receiving that error message because of it.


Good luck!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121204/855fc48b/attachment.html>

Posted on the users mailing list.