Webhook Response Mapping when the results are random
Hi there,
I have a webhook calling an API returns a list of items, the only issue is the results are not formatted the same each time, so the value of item[1].itemName may be "Blue Cars" in one call, and "Red Cars" in another, and I'm trying to get the count. All of the items I need are provided in the response, I'm just not sure how (and if) I can add the item name (with spaces) to the response attribute to grab the value.
I have scrubbed the response, but note that I do receive values with a space in-between them (Blue space car) as well as slashes (Green slash Blue car)
{"car_count":123456,"item_count":117733,"item_types":[{"item_type":"Blue Car","item_type_count":1115,"item_type_ratio":12},{"item_type":"Red Car","item_type_count":1225,"item_type_ratio":14},{"item_type":"Green/Blue Car","item_type_count":1345,"item_type_ratio":6}],"item_types_ratio":22}