Returns a JSON response format using the native JSON implementation. Options include :keywords? Returns the keys as keywords :prefix A prefix that needs to be stripped off. This is to combat JSON hijacking. If you're using JSON with GET request, you should think about using this. http://stackoverflow.com/questions/2669690/why-does-google-prepend-while1-to-their-json-responses http://haacked.com/archive/2009/06/24/json-hijacking.aspx
Returns a JSON response format using the native JSON implementation. Options include :keywords? Returns the keys as keywords :prefix A prefix that needs to be stripped off. This is to combat JSON hijacking. If you're using JSON with GET request, you should think about using this. http://stackoverflow.com/questions/2669690/why-does-google-prepend-while1-to-their-json-responses http://haacked.com/archive/2009/06/24/json-hijacking.aspx
(make-json-request-format write-json)
(make-json-response-format read-json)
Create a json request format given read-json
function.
Create a json request format given `read-json` function.
(read-json-cheshire raw keywords? text)
(read-json-native raw keywords? text)
(read-json-transit raw keywords? text)
(strip-prefix prefix text)
(write-json-cheshire stream data)
(write-json-native data)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close