我需要将简单的 json 遥测数据包转换为自定义 json 输出。你能帮我实现这一目标吗?
输入流分析
{"Id":80,"deviceId":"10004","temperature":21.94489404790873,"humidity":63.377043919318496}
流分析的输出应如下所示
{
"SiteId":[
80
],
"Name":"xxxx", -->hard coded value /reading from reference input
"Address":"xxxxx",-->hard coded value /reading from reference input
"telemetry":{
"temperature":21.94489404790873,
"humidity":63.377043919318496
}
}
}