My bad, thanks!<br><br><div class="gmail_quote">On Tue, Dec 4, 2012 at 12:24 PM, Danny Yoo <span dir="ltr"><<a href="mailto:dyoo@hashcollision.org" target="_blank">dyoo@hashcollision.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">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><div>According to the documentation in:</div><div><br></div><div> <a href="http://docs.racket-lang.org/json/index.html" target="_blank">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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Talk to you soon,<br><br>Scott Klarenbach<br><br>PointyHat Software Corp.<br><a href="http://www.pointyhat.ca" target="_blank">www.pointyhat.ca</a><br>p 604-568-4280<br>
e <a href="mailto:scott@pointyhat.ca" target="_blank">scott@pointyhat.ca</a><br>#308 - 55 Water St.<br>Vancouver, BC V6B1A1<br><br>_______________________________________<br>To iterate is human; to recur, divine<br>