(ns org.danlarkin.blog)

clojure-json

clojure-json is a JSON parser/encoder for the clojure language. It can transform from clojure datastrutures to JSON formatted text and back again.

org.danlarkin.json/encode-to-str accepts an arbitrarily nested clojure datastructure and returns a string with its JSON representation.

org.danlarkin.json/encode-to-str accepts an arbitrarily nested clojure datastructure and writes its JSON representation to a java.io.Writer object supplied to the function as an argument.

org.danlarkin.json/decode-from-str accepts a JSON-formatted string and returns a clojure datastructure.

org.danlarkin.json/decode-from-reader reads JSON-formatted text from a java.io.Reader object and returns a clojure datastructure.

I’m not very good at writing documentation so check out the README for more info.

© Dan Larkin. This work is licensed under a Creative Commons Attribution 3.0 United States License.
Powered by WordPress with a modified GimpStyle Theme design by Horacio Bella.