I am using Automation for Jira to request information using a web request. It returns a JSON that is in fact not really useful:
{latest=2022-05-03T15:16:30+00:00, employees={598={id=598, action=Inserted, lastChanged=2022-05-02T18:19:51+00:00}, 602={id=602, action=Inserted, lastChanged=2022-05-02T18:19:51+00:00}, 603={id=603, action=Inserted, lastChanged=2022-05-03T15:16:30+00:00}}}
In fact I need 3 ids from this JSON. But objects in employees are not a part of array, it is a hash map. When I use webresponse.body.employees I have no idea how to extract ids.
A good solution would be to convert employees to string, use split function and convert it to array. E.g.
{{webResponse.body.employees.asText.split("={id=")}}
however this does not work and returns empty text.
Are there any ideas?