Adding the appropriate content type of 'application/json' when the format is 'json'.