I receive a json file from a partner where some values are put into an array without a propertyname. for example "EANs" in the following json:
structure = [
{ID:'LIN',MIN:0,MAX:99999,LEVEL:[
{ID:'EANs',MIN:0,MAX:99999},
{ID:'Properties',MIN:0,MAX:99999},
]},
]
recorddefs = {
'LIN':
[
['BOTSID', 'M', 256, 'AN'],
['Id', 'C', 256, 'AN'],
['EANs', 'C', 256, 'AN'],
['Stock', 'C', 256, 'AN'],
['Properties', 'C', 256, 'AN'],
],
'EANs':
[
['BOTSID', 'C', 256, 'AN'],
['BOTSCONTENT', 'C', 4096, 'AN'],
],
'Properties':
[
['BOTSID', 'M', 256, 'AN'],
['Name','C',256,'AN'],
['Value','C',256,'AN'],
],
}
If i create a sublevel in the structure for "EANs", as the example above, i get the error: "ValueError: Expecting ':' delimiter: line 4 column 28 (char 47)"
If i remove the sublevel and just want to read "EANs" as a record, i get the error: "InMessageError: [J54]: List content must be a "object"."