Stringify the JSON and add contentType