Parsing Json to Tago Json
Hi Everyone,
Working on a proof of concept dash for a quick start guide. I need to parse out this json slug from my device and I have had some success with the convert raw json to Tago parser. However, part of my slug contains a decoded payload that I'd like to pull the variables out of. Unfortunately, the parser doesn't traverse the decoded payload to parse out those variables. In this example payload I would want to parse out all the main payload objects of the payload (which is working), but also parse out buttonstate, humidity, and temperature instead of converting the payload hex.
- [
- {
- "Time": "2022-03-10T21:45:04.82Z",
- "DecoderType": "MQPS",
- "DevEUI": "2CC407FFFE5006B2",
- "DevAddr": "44ABAC6A",
- "FPort": "7",
- "FCntUp": "451",
- "ADRbit": "1",
- "ACKbit": "",
- "MessageType": "2",
- "FCntDn": "108",
- "payload_hex": "00c26720",
- "decoded_payload": {
- "buttonState": "0",
- "humidity": "51.5",
- "temperature": "19.4"
- },
- "mic_hex": "626f5a80",
- "GatewayRSSI": "-61.000000",
- "GatewaySNR": "9.250000",
- "SpreadingFactor": "7",
- "SubBand": "G0",
- "Channel": "LC4",
- "GatewayCount": "1",
- "GatewayID": "07003B1A",
- "Late": "0",
- "GatewayLAT": "39.944412",
- "GatewayLON": "-75.184189",
- "GatewayList": [
- {
- "GatewayID": "07003B1A",
- "GatewayRSSI": "-61.000000",
- "GatewaySNR": "9.250000",
- "GatewayESP": "-61.487720"
- }
- ],
- "metadata": {
- "mqtt_topic": "mqtt-demo"
- }
- }
- ]
Let me know if this needs any more info.