StefanD
9 years agoNew Contributor
[0] to remove brackets doesn't work in ReadyAPI 1.5
Hi!
We get a list of items from a REST request and then in the next step we use $.elements[?(@.name == 'Test Automation')].id[0] in the source of a property transfer. In Ready API 1.5 it is no longer possible to use the [0] to get rid of the extra brackets for strings, it works for arrays. If it is a string it responds "[Filter: [0] can only be applied to arrays. Current context is: fa9f41b8-6370-401a-a6a0-5aefc53ac9f5]". It has been working in previous versions. Is this a new feature or is it a bug?
Regards
Stefan