set the content-types to JSON as necessary