Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (require '[cognitect.transit :as transit])
  2. (import [java.io ByteArrayInputStream ByteArrayOutputStream])
  3.  
  4. (def out (ByteArrayOutputStream. 4096))
  5. (def writer (transit/writer out :json))
  6. (transit/write writer "ü")
  7. (.toString out)
  8. => "[\"~#'\",\"ü\"]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement