[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guile-json 0.5.0 released
From: |
Christopher Allan Webber |
Subject: |
Re: guile-json 0.5.0 released |
Date: |
Wed, 24 Feb 2016 09:07:13 -0800 |
User-agent: |
mu4e 0.9.13; emacs 24.5.1 |
Aleix Conchillo FlaquƩ writes:
> Hi,
>
> I am happy to announce a new minor guile-json release 0.5.0. This
> release allows converting simple alists to json. Thanks to Jan
> Nieuwenhuizen!
>
> For example:
>
> scheme@(json)> (scm->json-string '((a . 1) (b . 2)))
> $2 = "{\"a\" : 1,\"b\" : 2}"
>
> For installation details and documentation:
>
> https://github.com/aconchillo/guile-json
>
> Happy hacking!
>
> Aleix
That's interesting!
BTW, how do you differentiate between these two cases?
{"a": ["b", "c", "d"]}
["a", "b", "c", "d"]
AFAICT both in scheme would be represented as:
'("a" . ("b" "c" "d"))
... or can only symbols be keys?