I the following array, I need to access all the elements in the array where "QOrder": "1" (there will always only be one element):
[
{
"@odata.etag": "",
"ItemInternalId": "4e0e6adf-b08c-47b9-83e3-24440c1eaad1",
"Q-ID": "21",
"QGroup": "Std1",
"Q": "Why is question3 hard?",
"QOrder": "9"
},
{
"@odata.etag": "",
"ItemInternalId": "f7ff0d03-c360-413e-af41-ef720c9a40a5",
"Q-ID": "22",
"QGroup": "Std1",
"Q": "Is question1 present?",
"QOrder": "1"
},
{
"@odata.etag": "",
"ItemInternalId": "4f6f2703-cee6-4f96-b8de-1df90fbfcc2b",
"Q-ID": "23",
"QGroup": "Std1",
"Q": "Where is question 2?",
"QOrder": "2"
}
]
I tried this code in a Filter array block, but with no luck:
item()?['QOrder'] is equal to string(1) (I also tried "... is equal to int(1)")
I don't believe I am accessing the value in QOrder correctly.
Would someone please lend a hand? I would be very appreciative; thank you.