[racket] json module bug?

From: Scott Klarenbach (scott at pointyhat.ca)
Date: Tue Dec 4 15:39:36 EST 2012

My bad, thanks!

On Tue, Dec 4, 2012 at 12:24 PM, Danny Yoo <dyoo at hashcollision.org> wrote:

>
>
> 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!
>



-- 
Talk to you soon,

Scott Klarenbach

PointyHat Software Corp.
www.pointyhat.ca
p 604-568-4280
e scott at pointyhat.ca
#308 - 55 Water St.
Vancouver, BC V6B1A1

_______________________________________
To iterate is human; to recur, divine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121204/2c67f308/attachment-0001.html>

Posted on the users mailing list.