I'm making a webapi call using apoc.load.json and returning data back.
The first collection (value) is the "propery" names in a list. I'd like to write my code to be self-healing if a later version of the webapi changes the order that the properties are returned.
for example: The property I want is 'svc_state_age' which happens to be the 13th item returned.
CALL apoc.load.json(url) YIELD value UNWIND value.result as svcstatus WITH * where svcstatus <> cmks.servicestateage
But if the vendor changes things and now svs_state_age is the 10th element, I'd have to fix my code. I'd like to be able to use a variable for  when the 'name' of the property in value matches 'svc_state_age'
I'm not sure how to return the index number of a collection ie:
WITH collect(value.result) as apipropertylist
then return the "index" number of the list where the value matches a string.
Any ideas on how to accomplish this?