Liking cljdoc? Tell your friends :D

cloudformation-templating

Clojars Project

A library for creating CloudFormation templates.

Importing existing templates

JSON templates can be converted to EDN (or Clojure) using this function:

(require '[cheshire.core :as json])
(require '[com.rpl.specter :as sp])

(defn import-from-json [^String s]
  (let [m (json/parse-string s true)]
    (sp/transform (sp/walker invalid-keyword?) full-name m)))

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close