Always allow JSON data for POST and PUT requests

Fixes #716