My bad, thanks!

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

>
>
> On Tue, Dec 4, 2012 at 12:21 PM, Scott Klarenbach <sc...@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 sc...@pointyhat.ca
#308 - 55 Water St.
Vancouver, BC V6B1A1

_______________________________________
To iterate is human; to recur, divine
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to