Last active
March 29, 2017 06:40
-
-
Save slipset/e6bce1b8f8443d3f98a95f20df39336d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns csv-parser.core | |
| (:require [clojure.string :as str] | |
| [clojure.data.csv :as csv] | |
| [cheshire.core :as json])) | |
| (->> "./foo.csv" | |
| slurp | |
| csv/read-csv | |
| rest | |
| (map #(zipmap [:id :first-name :given-name :yob] %)) | |
| json/encode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment