[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Why does the JSON egg map JSON structs to Scheme vec
Re: [Chicken-users] Why does the JSON egg map JSON structs to Scheme vectors instead of alists?
Sun, 27 Nov 2011 14:36:50 +0100
2011/11/27 Christian Kellermann <address@hidden>:
> My guess is that it makes it possible to write back to json, since
> alists are already used for representing a different datatype.
But json-write does not accept alists as values. This
(json-write (vector (cons "x" (list (cons "a" 1) (cons "b" 2)))))
throws the following error:
Error: Invalid JSON object in json-write: ("a" . 1)