Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 09-27-2021 07:36 PM - edited 09-27-2021 07:38 PM
从MQTT接收到的数据,要读入json数组
EvaluateJsonPath 如何获取JSON数组
我正在使用 EvaluateJsonPath 并且无法读取传感器数据
Created 09-27-2021 08:02 PM
I think the problem is that you are trying to evaluate path on a list of sensors:
sensor":[{"sensor_id":"Data05_37_alarm","value ":"0"},{"sensor_id":"Data06_37_alarm","value":"0"}....
you probably need to flatten json first and if you are trying to get each sensor information then you need to do splitjson and then you can do evaluatejsonpath. Hope that helps.
Created 09-27-2021 08:02 PM
I think the problem is that you are trying to evaluate path on a list of sensors:
sensor":[{"sensor_id":"Data05_37_alarm","value ":"0"},{"sensor_id":"Data06_37_alarm","value":"0"}....
you probably need to flatten json first and if you are trying to get each sensor information then you need to do splitjson and then you can do evaluatejsonpath. Hope that helps.
Created 09-27-2021 08:23 PM
First of all, thank you for your reply. I will try your method