Skip to content

Instantly share code, notes, and snippets.

Created January 12, 2016 12:42
Show Gist options
  • Save anonymous/978f1af6beb6cc2156ab to your computer and use it in GitHub Desktop.
Save anonymous/978f1af6beb6cc2156ab to your computer and use it in GitHub Desktop.
(defn trial [request]
(let [restaurant-list (:restaurants (cheshire/parse-string (:body (lf/get-restaurants)) true))
resta ()
]
(println (count restaurant-list))
(for [x restaurant-list
:let [rest-detail (:restaurant x)
rest-name (:name rest-detail)]]
(do (println rest-name)
(conj resta (str rest-name))))
(println "Done!")
(res/response resta)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment