-
build project: lein new sonar-parser
-
add dependencies: add "[org.clojure/data.json "0.2.3"]" in :dependencies in project.clj;
-
update (download) dependency jars (into ~/.m2/repository folder): lein deps
-
start repl: lein repl
-
test in repl:
(require '[clojure.data.json :as json]) (def data (json/read-str (slurp "http://..."))) ((first ((first data) "msr")) "val") ; => 5.0
-
add script into src/sonar-parser/core.clj;
-
pack project: lein uberjar