Setting content-type to application/json.