2 Answers
- Newest
- Most votes
- Most comments
0
Not having tested it but quick guess: $input.inputname.status is a list. Might be a list is not considered to be a datum.
Try the following:
{
"thingname": "test device",
"status": "somestatus"
}
0
I can tell you exactly what the problem is. It's the SPACES! I fought this for over a week and found the answer tucked away on Stackoverflow.
The spaces are BAD
"{\"thingname\": \"${$input.inputname.thingname}\", \"device_status\": ${$input.inputname.status}}"
This payload is GOOD
"{\"thingname\":\"${$input.inputname.thingname}\",\"device_status\":${$input.inputname.status}}"
answered 2 years ago
Relevant content
asked 5 years ago
asked 3 years ago
asked 4 years ago
asked 3 years ago
