File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 33 :url " http://dkdhub.com"
44 :license {:name " MIT" }
55
6- :dependencies [[cheshire " 5.11.0 " ]
6+ :dependencies [[metosin/jsonista " 0.3.7 " ]
77 [commons-io " 2.11.0" ]
88 [clj-time " 0.15.2" ]
99 [com.eaio.uuid/uuid " 3.2" ]
1010 [org.postgresql/postgresql " 42.5.1" ]]
1111
1212 :omit-source false
13- :aot [libmisc-clj.jnio-proto])
13+ :aot [libmisc-clj.jnio-proto])
Original file line number Diff line number Diff line change 11(ns libmisc-clj.convert
2- (:require [cheshire .core :as json]))
2+ (:require [jsonista .core :as json]))
33
44(defn json-response
55 ([body] (json-response body 200 ))
66 ([body code]
77 {:status code
88 :headers {" Content-Type" " application/json; charset=utf-8" }
9- :body (json/generate -string body)}))
9+ :body (json/write-value-as -string body)}))
1010
1111(defmacro json-error
1212 [msg code]
13- `(json-response {:error ~msg} ~code))
13+ `(json-response {:error ~msg} ~code))
You can’t perform that action at this time.
0 commit comments