Filtering JSON Api Call Return

2018-03-10 Thread Andrea Casini
Hi, I'm trying to use the following JSON structure so that I can have a variable with "template1" or "template2" value and return the correspondant "Id" value. I tried using the map filter, json_query and others but I can't do what I need so I'm asking for help! Here's the JSON structure: [

Re: Filtering JSON Api Call Return

2018-03-10 Thread Andrea Casini
us what other ways I can use to obtain the same result. On Saturday, March 10, 2018 at 6:39:28 PM UTC+1, Andrea Casini wrote: > > I found a json_query expression that does what I need: > > [?Caption=='template2'].Id > > When I use it in a playbook this is what happens: >