set Content-Type to application/json when returning json