[racket] json module bug?
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.
ie,
>> (jsexpr->string (hash "id" 1 "title" "core"))
write-json: expected argument of type <bad JSON key value>
BUT this works:
>> (jsexpr->string (hash 'id 1 'title "core"))
"{\"id\":1,\"title\":\"core\"}"
--
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/ca570cd5/attachment-0001.html>