clear all
pidData = [ 1 1.1 1.2];
s = struct('PID', pidData);
encodePID1 = jsonencode(s);
decodePID1 = jsondecode(encodePID1)
PID = jsondecode(encodePID1)

pidData = [ 2 2.1 2.2];
s = struct('PID', pidData);
encodePID2 = jsonencode(s);
decodePID2 = jsondecode(encodePID2)

PID.PID = [PID.PID; decodePID2.PID];

