Write JSON content type for API responses