Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Wrap *out* in a PrintWriter, since it's only guaranteed to be a Writer

  • Loading branch information...
commit ef6a05f6599862a8c5c7b0d00fe4ce418fc638be 1 parent 36eb700
Stuart Sierra stuartsierra authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  src/main/clojure/clojure/data/json.clj
2  src/main/clojure/clojure/data/json.clj
@@ -328,7 +328,7 @@
328 328 to turn off \\uXXXX escapes of Unicode characters."
329 329 [x & options]
330 330 (let [{:keys [escape-unicode] :or {escape-unicode true}} options]
331   - (write-json x *out* escape-unicode)))
  331 + (write-json x (PrintWriter. *out*) escape-unicode)))
332 332
333 333
334 334 ;;; JSON PRETTY-PRINTER

0 comments on commit ef6a05f

Please sign in to comment.
Something went wrong with that request. Please try again.