chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] json egg


From: Daishi Kato
Subject: [Chicken-users] json egg
Date: Sat, 18 Nov 2006 00:39:02 +0900

Hi,

Two issues in the json egg:

1) the egg depends on srfi-1, so (use srfi-1) should be included?

2) why the null list '() can't be [] in JSON? It does with json-read,
but not with json-write.

Thanks,
Daishi

Version 2.5 - linux-unix-gnu-x86 - [ dload ptables applyhook ]
(c)2000-2006 Felix L. Winkelmann
#;1> (use json)
; loading /usr/local/chicken-2.5/lib/chicken/1/json.so ...
; loading /usr/local/chicken-2.5/lib/chicken/1/packrat.so ...
#;2> (with-input-from-string "[]" json-read)
Error: unbound variable: lset-union

 Call history:

 <eval>        (with-input-from-string "[]" json-read) <--
#;2> (use srfi-1)
; loading library srfi-1 ...
#;3> (with-input-from-string "[]" json-read)
()
#;4> (json-write '())
Error: Invalid JSON object in json-write: ()

 Call history:

 <eval>        (json-write (quote ())) <--
#;4> (json-write '(1))
[1]#;5>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]