[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Medea Egg: nested lists/pairs
From: |
Karsten Gebbert |
Subject: |
[Chicken-users] Medea Egg: nested lists/pairs |
Date: |
Tue, 26 Mar 2013 14:28:20 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 |
Hi,
I'm using the medea egg, installed via chicken-install, and I'm
encountering a problem unparsing lists that contain pairs with more
list/pairs. To my understanding of the source code, write-json should
just call itself on the cdr of the pair, but I get an error:
#;2> #;2> (write-json '((one . 1) (two . '((three . 3) (four . 4)))))
Error: (car) bad argument type: quote
Call history:
<syntax> (write-json (quote ((one . 1) (two quote ((three . 3)
(four . 4))))))
<syntax> (quote ((one . 1) (two quote ((three . 3) (four . 4)))))
<syntax> (##core#quote ((one . 1) (two quote ((three . 3)
(four . 4)))))
<eval> (write-json (quote ((one . 1) (two quote ((three . 3)
(four . 4))))))
Do I need to provide my own unparser in order to be able to create
nested objects or is there a different approach I have overlooked?
Best,
Karsten
- [Chicken-users] Medea Egg: nested lists/pairs,
Karsten Gebbert <=