change data protocol to json