Hi again.
I manage to get the raw JSON data into a string, so the client and transport is OK.
But if i try restclient.retrieve() or dw_1.importjson(), they both return 0.
I think the format might be unsupported?
The help file has a paragraph about this.
This is the JSON which is returned:
[{
"supplier": {
"prognosisLastUpdated": "2018-06-01 08:45:00 +0000",
"year": 2018,
"year": 23,
"fishSpecies": 1,
"supplierOrgNumber": 985940460,
"packagingStationId": "T-126"
},
"delivery": {
"horizonId": "69FB0F04-05BC-486D-81DE-80E44D0E08BF",
"harvestDate": "2018-06-05 00:00:00 +0000",
"serial": 1,
"localityId": "34457",
"cage": "1524",
"totalNumber": 13349.0,
"totalQuantity": 60776.57,
"averageWeight": 4.553,
"distributionQualitySuperior": 90.0,
"distributionQualityOrdinary": 5.0,
"distributionQualityProduction": 5.0,
"distributionQualityDiscards": 0.0,
"distributionSize01": 70.9,
"distributionSize02": 1601.04,
"distributionSize03": 10979.36,
"distributionSize04": 24516.69,
"distributionSize05": 18457.98,
"distributionSize06": 4729.09,
"distributionSize07": 409.57,
"distributionSize08": 11.83,
"distributionSize09": 0.1
}
}, {
"supplier": {
"prognosisLastUpdated": "2018-06-01 08:45:00 +0000",
"year": 2018,
"week": 23,
"fishSpecies": 1,
"supplierOrgNumber": 985940460,
"packagingStationId": "T-126"
},
"delivery": {
"horizonId": "4268A301-BDFD-4B07-8FF5-681396F265A7",
"harvestDate": "2018-06-06 00:00:00 +0000",
"serial": 1,
"localityId": "34457",
"cage": "1524",
"totalNumber": 17727.0,
"totalQuantity": 80703.1,
"averageWeight": 4.553,
"distributionQualitySuperior": 90.0,
"distributionQualityOrdinary": 5.0,
"distributionQualityProduction": 5.0,
"distributionQualityDiscards": 0.0,
"distributionSize01": 94.15,
"distributionSize02": 2125.97,
"distributionSize03": 14579.11,
"distributionSize04": 32554.87,
"distributionSize05": 24509.71,
"distributionSize06": 6279.6,
"distributionSize07": 543.85,
"distributionSize08": 15.71,
"distributionSize09": 0.13
}
}, {
"supplier": {
"prognosisLastUpdated": "2018-06-01 08:45:00 +0000",
"year": 2018,
"week": 23,
"fishSpecies": 1,
"supplierOrgNumber": 985940460,
"packagingStationId": "T-126"
},
"delivery": {
"horizonId": "09FD2329-944E-464C-922A-4FB9C5C54234",
"harvestDate": "2018-06-07 00:00:00 +0000",
"serial": 1,
"localityId": "34457",
"cage": "1524",
"totalNumber": 13133.0,
"totalQuantity": 59779.56,
"averageWeight": 4.552,
"distributionQualitySuperior": 90.0,
"distributionQualityOrdinary": 5.0,
"distributionQualityProduction": 5.0,
"distributionQualityDiscards": 0.0,
"distributionSize01": 69.74,
"distributionSize02": 1574.78,
"distributionSize03": 10799.25,
"distributionSize04": 24114.51,
"distributionSize05": 18155.19,
"distributionSize06": 4651.52,
"distributionSize07": 402.85,
"distributionSize08": 11.63,
"distributionSize09": 0.1
}
}
]
Perhaps the two blocks per row is a no go?
Thanks
Bjarne