EDIT . the source code is on github , if you're interested. Thanks
I'm a little confused on how to access the json data that was sent to the url in clojure; I just can't get it to work.
This is my route:
(cc/POST "/add"
request
(str ": " request))
I'm not quite sure what I need to put in place request- I just saw a blog on the Internet and tried to follow it, but could not get it to work.
This is how I am trying to post: (from fiddler )

note: the request header port is different from the image; this is a mistake, I tried to spoil this data to see what it says, so ignore this part in the image above.
In curl, I just do this:
curl -X POST -H "Content-Type: application/json" -d '{"foo":"bar","baz":5}'
http://localhost:3005/add
, clojure json, .
, var:
: {:scheme :http, :query-params {}, :form-params {}, :request-method :post,
:query-string nil, :route-params {}, :content-type "\"application/json\"",
:uri "/event", :server-name "localhost", :params {},
:headers {"user-agent" "Fiddler", "content-type" "\"application/json\"",
"content-length" "23", "host" "localhost:3005"},
:content-length 23, :server-port 3005, :character-encoding nil, :body
, params ...
compojure cheshire - json GET. , json clojure.