gateway setting move to json