Forum Discussion

StefanD's avatar
StefanD
New Contributor
9 years ago

[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

4 Replies

    • StefanD's avatar
      StefanD
      New Contributor

      Hi!

      I have downloaded the maintenance build and installed it today but the problem still remains. One of my collegues have installed 1.5 and he also get this problem in SoapUI NG.

      • nmrao's avatar
        nmrao
        Champion Level 3
        May be the choice could be (if ok for you) to downgrade to 1.4.1 till you get it to work.
        By the did you submit any support case for the issue?