detect JSON documents in multipart form data and set content-type