Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Now using Jackson 2.0.0 that has a new package name , so no more JSON…

… encoder/decoder conflicts
  • Loading branch information...
commit d6b823ca9e98e766dc92edac1ab4684933de3c32 1 parent c71e46e
@zoka authored
Showing with 6 additions and 5 deletions.
  1. +1 −1  project.clj
  2. +5 −4 src/ringmon/json.clj
View
2  project.clj
@@ -3,7 +3,7 @@
:url "https://github.com/zoka/ringMon"
:dependencies [[org.clojure/clojure "1.3.0"]
[ring/ring-core "1.0.1"]
- [org.codehaus.jackson/jackson-core-asl "1.5.0"]
+ [com.fasterxml.jackson.core/jackson-core "2.0.0"]
[org.clojure/tools.nrepl "0.2.0-beta2"]
[org.clojure/java.jmx "0.1"]]
View
9 src/ringmon/json.clj
@@ -1,17 +1,18 @@
;
; All in one JSON parser using only one dependency:
-; [org.codehaus.jackson/jackson-core-asl "1.5.0"]
+; [com.fasterxml.jackson.core/jackson-core "2.0.0"]
; Providing only generate-string and parse-string
; Cherry picked from Cheshire.
(ns ringmon.json
(:import
- (org.codehaus.jackson
+ (com.fasterxml.jackson.core
JsonParser
JsonFactory
JsonToken
JsonGenerator
JsonParser$Feature
+ JsonFactory$Feature
JsonGenerationException)
(java.io StringWriter StringReader)
(java.util Date Map List Set SimpleTimeZone UUID)
@@ -112,9 +113,9 @@
(boolean (:allow-single-quotes opts)))
(.configure JsonParser$Feature/ALLOW_UNQUOTED_CONTROL_CHARS
(boolean (:allow-unquoted-control-chars opts)))
- (.configure JsonParser$Feature/INTERN_FIELD_NAMES
+ (.configure JsonFactory$Feature/INTERN_FIELD_NAMES
(boolean (:intern-field-names opts)))
- (.configure JsonParser$Feature/CANONICALIZE_FIELD_NAMES
+ (.configure JsonFactory$Feature/CANONICALIZE_FIELD_NAMES
(boolean (:canonicalize-field-names opts))))))
(defonce ^JsonFactory json-factory (make-json-factory default-factory-options))
Please sign in to comment.
Something went wrong with that request. Please try again.