(json:decode-json-from-string "{"foo": [1, 2, 3], "bar":true}")
;((:FOO 1 2 3) (:BAR . T))
(json:encode-json-to-string (json:decode-json-from-string "{"foo": [1, 2, 3], "bar": true}"))
;"{"foo":[1,2,3],"bar":true}"
(json:decode-json-from-string "{"foo": [1, 2, 3]}")
;((:FOO 1 2 3))
(json:encode-json-to-string (json:decode-json-from-string "{"foo": [1, 2, 3]}"))
;"[["foo",1,2,3]]"
Last encode seems error. Why?
(json:decode-json-from-string "{"foo": [1, 2, 3], "bar":true}")
;((:FOO 1 2 3) (:BAR . T))
(json:encode-json-to-string (json:decode-json-from-string "{"foo": [1, 2, 3], "bar": true}"))
;"{"foo":[1,2,3],"bar":true}"
(json:decode-json-from-string "{"foo": [1, 2, 3]}")
;((:FOO 1 2 3))
(json:encode-json-to-string (json:decode-json-from-string "{"foo": [1, 2, 3]}"))
;"[["foo",1,2,3]]"
Last encode seems error. Why?