Liking cljdoc? Tell your friends :D

ajax.json


json-request-formatcljs

source

json-response-formatcljs

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
sourceraw docstring

make-json-request-formatcljs

(make-json-request-format write-json)
source

make-json-response-formatcljs

(make-json-response-format read-json)
source

read-json-nativecljs

(read-json-native raw keywords? text)
source

read-json-transitcljs

(read-json-transit raw keywords? text)
source

safe-json-request-formatcljs

source

strip-prefixcljs

(strip-prefix prefix text)
source

write-json-nativecljs

(write-json-native data)
source

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

× close