added content-type support for application/json POST requests