Hi Karsten,

Karsten Gebbert <karsten.gebb...@gmail.com> writes:
> #;2> (write-json '((one . 1) (two . '((three . 3) (four . 4)))))

the problem here is the inner quote. Your expression is read as:

  (quote ((one . 1) (two . (quote ((three . 3) (four . 4))))))

Which evaluates to

  ((one . 1) (two . (quote ((three . 3) (four . 4)))))

As you can see, that is not what you intended. The inner quote gets
quoted, too. So just leave it off and it should work as expected!

Moritz

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to