ContributionsMost RecentMost LikesSolutionshow to do assertion if the response has multiple arrays with single object how to write assertion if request is a json and response is a json with single array with single object ,and also for multiple arrays with single object? trying to see if all the fields in request json(input payload) has successfully transformed into required json(output) or not. only thing is i am unable to write assertion since response is single array with single object . can anyone help me with what expression i can use for it? or any script? and with multiple arrays with single object? Re: Sub : how to do regular expression assertions for variable elements in an array thank you for the response. Re: Sub : how to do regular expression assertions for variable elements in an array need solution thanks. Re: Sub : how to do regular expression assertions for variable elements in an array sure, 2 assertions are fine for me. Sub : how to do regular expression assertions for variable elements in an array Description : Trying to write an assertion for fields code and unit. code can be an integer or empty and unit can be a string or empty. i.e code and unit has no fixed values. And have to assert based on assertion using regex. the assertion have to match all the object properties in the response array. [ { "code": "0", "unit": "meter" }, { "code": "1", "unit": "meter" }, { "code": "2", "unit": "meter" }, { "code": "", "unit": "" } ] Solved