Writing a Dataset JSON
Posted: Wed Sep 16, 2020 8:31 am
So I want to write a JSON dataset.
Using await job.createDataset("iqdata",JSONpath,DatasetModel.JDF);
and writing this JSON Data
{
"job": [{
"impositionwidth": "210.0000",
"impositionheight": "297.0000",
"sectionnumber": 0,
"finishedwidth": "210.0000",
"finishedheight": "297.0000",
"pages": "2",
"foldtype": "Flat Product",
"press": "HP Indigo 7900",
"presspath": {},
"stock": "150gsm Test Stock",
"Stockmatch": {},
"printquantity": {},
"processfront": "CMYK",
"processback": "CMYK",
"artworkname": "Artwork",
"thissection": {}
}]
}
It attaches to the job correctly and I can see in the dataview but when I try to view it I get this error
My JSON seems to be formatted correctly and I'm not sure why Switch is expecting "<"
Has anyone got any idea's?
Using await job.createDataset("iqdata",JSONpath,DatasetModel.JDF);
and writing this JSON Data
{
"job": [{
"impositionwidth": "210.0000",
"impositionheight": "297.0000",
"sectionnumber": 0,
"finishedwidth": "210.0000",
"finishedheight": "297.0000",
"pages": "2",
"foldtype": "Flat Product",
"press": "HP Indigo 7900",
"presspath": {},
"stock": "150gsm Test Stock",
"Stockmatch": {},
"printquantity": {},
"processfront": "CMYK",
"processback": "CMYK",
"artworkname": "Artwork",
"thissection": {}
}]
}
It attaches to the job correctly and I can see in the dataview but when I try to view it I get this error
My JSON seems to be formatted correctly and I'm not sure why Switch is expecting "<"
Has anyone got any idea's?