1 Answer
- Newest
- Most votes
- Most comments
0
You can use the nested object queries to get the values. https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-nested-queries.html
In your example , use the below messaging routing rule to get the value of "id" and "val".
SELECT get(payload.vals,0).val AS VAL FROM 'TestRule'
SELECT get(payload.vals,0).id AS ID FROM 'TestRule'
I used "TestRule" as source generating the data.
answered 10 months ago
Relevant content
- asked 6 months ago
- asked 2 years ago
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 5 months ago