Allowing use of JSON as the request body for PUT/POST requests, closes #31