you might find this useful:

https://github.com/dakrone/cheshire

you can pretty much swap it in for data.json IIRC and it has nice
support for custom encodings, amongst other things.

On Wed, Sep 26, 2012 at 12:39 PM, Robert Beaupre
<[email protected]> wrote:
> Hi there,
> I am wondering what the best/recommended way to deal with serialization of
> unknown types to JSON with clojure.data.json.  For things like UUIDs and SQL
> Dates, I get errors like this:
> java.lang.Exception: Don't know how to write JSON of class java.util.UUID
>
> With Clojure 1.4 is there an extensible way of doing this or should I make a
> wrapper function that converts unknown types to strings and then call
> json-str on the data structure?
>
> Thanks,
> Robert
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to