Created
June 26, 2018 23:12
-
-
Save msszczep/52307a32dd30dfb53a925296eb15bf6d to your computer and use it in GitHub Desktop.
Get JSON Data via InLein script
This file contains 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
'{:dependencies [[org.clojure/clojure "1.8.0"] | |
[cheshire "5.8.0"]]} | |
(require '[cheshire.core :as json]) | |
(def j (cheshire.core/parse-string (slurp "j.json") true)) | |
(def file-names (->> j | |
:definitions | |
(map (comp last #(clojure.string/split #"\.") :file)) | |
distinct | |
(filter (partial re-find #"css")))) | |
(println file-names) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment