                  (throw (IllegalArgumentException.
                           "Can't decode fressian. Add org.clojure/data.fressian to your dependencies."))))}))
 
-(register-codec!
+(register-codec
   (make-codec
     {:name :json
      :content-type "application/json"

  (-> (Codecs.)
    (.add None/INSTANCE)))

(defn register-codec!
  "Registers a codec for use.

   `codec` should be the result of {{make-codec}}."
  [codec]
  (.add codecs codec))

(register-codec!
  (make-codec
    {:name :edn
     :content-type "application/edn"

                            (str "Invalid edn-encoded data (type=" (class data) "): " data)
                            e)))))}))

(register-codec
  (make-codec
    {:name :fressian
     :content-type "application/fressian"
