ClojureBridge/curriculum

Incorrect function name in first-project.md, apij.clj causes boomness

Closed this issue · 2 comments

'parse-json' should be 'json/parse-string'

'parse-json' doesn't seem to exist according to https://github.com/dakrone/cheshire

(defn get-api
"Returns map representing API response."
[path qp](let [base-path %28str base-uri path%29
query-params %28merge qp {:format "json" :per_page 10000})
response (parse-json (:body (client/get base-path {:query-params query-params}))) <---
metadata (first response)
results (second response)]
{:metadata metadata

:results results}))

Sorry, should have previewed, that formatted horribly. Also, it is line 159.

Need to include parse-json function in first-program