Liking cljdoc? Tell your friends :D

ajax.json


json-request-formatclj/s

source

json-response-formatclj/s

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-formatclj/s

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

make-json-response-formatclj/s

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

Create a json request format given read-json function.

Create a json request format given `read-json` function.
sourceraw docstring

read-json-cheshireclj

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

read-json-nativecljs

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

read-json-transitcljs

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

safe-json-request-formatclj/s

source

strip-prefixclj/s

(strip-prefix prefix text)
source (clj)source (cljs)

write-json-cheshireclj

(write-json-cheshire stream data)
source

write-json-nativecljs

(write-json-native data)
source

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

× close