Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (require '[cognitect.transit :as transit])
- (import [java.io ByteArrayInputStream ByteArrayOutputStream])
- (def out (ByteArrayOutputStream. 4096))
- (def writer (transit/writer out :json))
- (transit/write writer "ü")
- (.toString out)
- => "[\"~#'\",\"ü\"]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement