Created 03-09-2022 03:03 AM
@m_hsn ,
You can use the JoltTransformJSON processor to flatten this JSON structure, using the following JOLT specification:
[
{
"operation": "shift",
"spec": {
"sensor": {
"*": {
"*": "[&1].&",
"@(2,date)": "[&1].date",
"@(2,device_name)": "[&1].device_name",
"@(2,device_id)": "[&1].device_id",
"@(2,status)": "[&1].status"
}
}
}
}
]
Cheers,
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.