I've added a "remove" operation to the chain to solve the problem I mentioned in the last post, removing the "null" in the first position of the "measures" array:
[
{
"operation": "shift",
"spec": {
"LevelID": "assetId",
"PLCTime": "datapoints[0].timestamp",
"Data*Type": "datapoints[0].measures[&(0,1)].name",
"Data*": "datapoints[0].measures[&(0,1)].value"
}
},
{
"operation": "remove",
"spec": {
"datapoints": {
"*": {
"measures": {
"0": ""
}
}
}
}
}
]
This should give you the exact output you were looking for.
HTH,
André
--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.