I'm using ring-json. In defining my app, I'm doing this:
(wrap-json-params)
(wrap-json-body)
(wrap-json-response)
and in my routes, I have this:
(POST "/messages" {params :params session :session} (process-message params session))
where the process-message function doesn't do anything but println right now. When I post json data to the route, I'm seeing the data in an error, but can't figure out why I'm getting the error:
java.lang.IllegalArgumentException: Cannot open <{"var1" "hey", "var2" "ho"}> as an InputStream.
Any help would be greatly appreciated...