data.json

Add support for encoding maps and sequences

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor 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)))

Activity

Ben Smith-Mannschott made changes -
Field Original Value New Value
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)))
Here is some trivial workaround code I've been using:

{code}
(defn jsonable [o]
(cond
(map? o)
(zipmap
(keys o)
(map jsonable (vals o)))
(seq? o)
(map jsonable o)))
{code}
Stuart Sierra made changes -
Resolution Declined [ 2 ]
Status Open [ 1 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: