I'm building a RESTful API using Martini and have a hard time accessing the contents of book.json sent to my service via
curl -X POST "http://localhost:8080/books" -H "Content-Type: application/json" -d @book.json
book.json is not a binary file but a simple text file containing a JSON array. How can I access the transmitted JSON? PostForm on the http.Request is empty.