<br><br><div class="gmail_quote">On Tue, Dec 4, 2012 at 12:21 PM, Scott Klarenbach <span dir="ltr"><<a href="mailto:scott@pointyhat.ca" target="_blank">scott@pointyhat.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is this a bug with the json module, or am I missing something about the implementation?<div><br></div><div>It seems it crashes when serializing a hashtable that has strings for keys. Symbols work fine.</div><div><br></div>
</blockquote><div><br></div><div>According to the documentation in:</div><div><br></div><div> <a href="http://docs.racket-lang.org/json/index.html">http://docs.racket-lang.org/json/index.html</a></div><div><br></div><div>
jsexprs have a particular shape (see the docs for jsexpr?). The hash tables in jsexprs need to have the shape:</div><div><br></div><div> (hasheqof symbol? jsexpr?)</div><div><br></div><div><br></div><div>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.</div>
<div><br></div><div><br></div><div>Good luck!</div></div>