This is my first question here. I asked the question on SO, got no answer.
So I started a project with
lein new app. I added a dependency in the
core.clj I require the library as follows:
(:require [clojure.data.json :as json])
when I try to use the library in:
(def posts (json/read-str (slurp "../data.json") :key-fn keyword))
it throws this error:
CompilerException java.lang.RuntimeException: No such namespace: json, compiling:
please let me know what step I am missing here. please explain the process of running the whole thing as if you’re talking to a 5 year-old!!!