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?

Reply via email to