Change ptotocol to json objects