Re: guile-json: simple alist to json

2016-02-23 Thread Aleix Conchillo Flaqué
On Tue, Feb 23, 2016 at 12:09 PM, Jan Nieuwenhuizen wrote: > > Ouch. Yes, I get that too... > > I have been running this for quite some time but aparrently I prepared > patches and sent untested, "cleaned-up" code. Sorry. > > Please find a new patch set attached. > Applied

Re: guile-json: simple alist to json

2016-02-23 Thread Jan Nieuwenhuizen
Aleix Conchillo Flaqué writes: Hi Aleix, > thanks for the patch! I have tried with guile 2.0.11 and it's giving me th > ​e error at the end. I had zero time to fix it, but I believe it's > complaining because of this: > > scheme@(guile-user)> (symbol 'a) > ERROR: In procedure string: > ERROR:

Re: guile-json: simple alist to json

2016-02-22 Thread Aleix Conchillo Flaqué
On Thu, Feb 18, 2016 at 2:21 PM, Jan Nieuwenhuizen wrote: > Hi Aleix, > > Attached are two patches to allow converting simple alists > to json, this removes the need for strings or hash-tables > > scheme@(json)> (scm->json-string '((a . 1) (b . 2))) > $2 = "{\"a\" :

guile-json: simple alist to json

2016-02-18 Thread Jan Nieuwenhuizen
Hi Aleix, Attached are two patches to allow converting simple alists to json, this removes the need for strings or hash-tables scheme@(json)> (scm->json-string '((a . 1) (b . 2))) $2 = "{\"a\" : 1,\"b\" : 2}" Greetings, Jan >From 1faa02421076eeb7d680c6d189dab0cd8c272f3b Mon Sep 17