allowing for JSON posting of data if Content-Type header is set