Details
-
Type:
Enhancement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Declined
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Here is some trivial workaround code I've been using:
(defn jsonable [o] (cond (map? o) (zipmap (keys o) (map jsonable (vals o))) (seq? o) (map jsonable o)))
I don't understand. Maps and sequences have always been supported:
user=> (json-str {:a 1 :b 2}) "{\"a\":1,\"b\":2}" user=> (json-str (range 5)) "[0,1,2,3,4]"user=> (json-str {:a 1 :b 2}) "{\"a\":1,\"b\":2}" user=> (json-str (range 5)) "[0,1,2,3,4]"