Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't like literals: #uuid and #inst #28

Open
viperscape opened this issue May 17, 2013 · 1 comment
Open

Doesn't like literals: #uuid and #inst #28

viperscape opened this issue May 17, 2013 · 1 comment

Comments

@viperscape
Copy link

Is this a known fact? I ended up fixing this by turning the literals to strings.

http://stackoverflow.com/questions/16610383/remove-inst-and-uuid-literals-in-clojure

Is this the recommended procedure or am I missing something obvious? :)

@PetrGlad
Copy link

PetrGlad commented Aug 23, 2017

Better way is to extend serialization protocol for UUID:

(extend-type java.util.UUID
  clojure.data.json/JSONWriter
  (-write [object ^PrintWriter out]
    (.print out (str \" object \"))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants