I am using Atom and Leiningen to program in Clojure for a University module. I have a question that requires me to parse JSON, and I'm not really sure how to go about setting it up so that I can use JSON with Atom.
I read here that you need to add:
(ns example (:require [clojure.data.json :as json]))
To be able to use JSON in your Clojure code, however I get this error:
FileNotFoundException Could not locate clojure/data/json__init.class or clojure/data/json.clj on classpath. clojure.lang.RT.load (RT.java:456)
I assume this is something to do with not adding it as a dependency as the github link says to do so. But I am not really sure how to add a dependency to my ATOM project. Could anyone explain how I'd go about doing that?
Thanks.
project.cljfile in your top-level project directory. That's where the dependency would go. - jas