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>
<div>ie,</div><div><br></div><div>>> (jsexpr->string (hash "id" 1 "title" "core"))</div><div>write-json: expected argument of type <bad JSON key value></div><div><br></div><div>
BUT this works:</div><div><br></div><div>>> (jsexpr->string (hash 'id 1 'title "core"))</div><div>"{\"id\":1,\"title\":\"core\"}"<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>
</div>