added content-type and encoding for the JSON request