set response header content-type to json