Parsing MQTT payload into Tago JSON

Parsing MQTT payload into Tago JSON

@Nick

Hello,

Can you help me parse the payload below into Tago JSON format?
This is what i’m receiving in Live inspector.

21:16:36:
[POST] MQTT Request:
“From: ::ffff:10.0.2.48 - Content-Type: JSON - Token Ending: d38c5”
“From: ::ffff:10.0.2.48 - Content-Type: JSON - Token Ending: d38c5”
21:16:36:
Raw payload:
{ “acc”: { “x”: “5”, “y”: “0”, “z”: “1026” }, “mag”: { “x”: “50”, “y”: “-10”, “z”: “-35” }, “gyr”: { “x”: “122”, “y”: “-183”, “z”: “61” }, “env”: { “l”: “2880”, “r”: “64”, “p”: “99357”, “t”: “25.141” } }
{
“acc”: {
“x”: “5”,
“y”: “0”,
“z”: “1026”
},
“mag”: {
“x”: “50”,
“y”: “-10”,
“z”: “-35”
},
“gyr”: {
“x”: “122”,
“y”: “-183”,
“z”: “61”
},
“env”: {
“l”: “2880”,
“r”: “64”,
“p”: “99357”,
“t”: “25.141”
}
}