Re: [Chicken-users] [announce] JSON egg version 2.0

2007-02-14 Thread John Cowan
Daishi Kato scripsit: Here is an example that breaks inconsistency. I don't think I'm happy with this. #;18 (with-output-to-string (lambda () (json-write (with-input-from-string [[\a\,1,2]] json-read {\a\ : [1, 2]} That's definitely a bug. I need to think about it to see what the

Re: [Chicken-users] [announce] JSON egg version 2.0

2007-02-12 Thread Daishi Kato
Hi, sorry for the delay. Here is an example that breaks inconsistency. I don't think I'm happy with this. #;18 (with-output-to-string (lambda () (json-write (with-input-from-string [[\a\,1,2]] json-read {\a\ : [1, 2]} Daishi On 2/10/07, John Cowan [EMAIL PROTECTED] wrote: Daishi Kato

[Chicken-users] [announce] JSON egg version 2.0

2007-02-09 Thread John Cowan
I have just completed a major rewrite of Tony Garnock-Jones's JSON egg. It's temporarily available at http://www.ccil.org/temp/json.egg . The JSON parser is untouched; however, the JSON generator has been completely redesigned. Here are the new features: 1) A Scheme object is completely

Re: [Chicken-users] [announce] JSON egg version 2.0

2007-02-09 Thread Daishi Kato
2) An a-list (list of pairs) will be written as a JSON object (structure). Likewise, a vector containing writable objects rather than pairs will be written as a JSON list. (However, an empty Scheme list is written as a JSON list, whereas an empty Scheme vector is written as a JSON object.) So,