aconchillo / guile-redis

Redis module for Guile
GNU General Public License v3.0
29 stars 4 forks source link

Prefer Arrays over Objects #1

Closed jason-earl closed 5 years ago

jason-earl commented 5 years ago

guile-json currently prefers objects over arrays in certain circumstances. For example, this code:

(scm->json '((1 2 3) (4 5 6)))

returns:

{"1":[2,3],"4":[5,6]}

Sometimes I would prefer it to return something like this:

[[1,2,3],[4,5,6]]

I have a branch prefer_array that I used to test what I needed. I don't pretend to be any good at this, but it might be helpful to see what I mean.

jason-earl commented 5 years ago

Clearly this is for guile-json. My apologies.