While trying to desirialize a containers.Map I get a cell2struct error in matlab.internal.json.makeStructure due to duplicate field names. The duplicate field names stem from Map keys which are more than 70 chars long and differ only in the last chars (I have no influence on the length of these keys). I use jsonencode/jsondecode to de/serialize the Map. Is there a simple workaround for this problem or am I missing an option or s.th.?
MATLAB: Deserialized containers.Map keys exceed max name length
containers.mapdeserializationMATLABnamelengthmax
Best Answer