AnsweredAssumed Answered

Trim white spaces in Split Variable Assertion

Question asked by siddharth-b on Oct 16, 2017
Latest reply on Oct 16, 2017 by Mark_HE

Hi guys I am working of API Gateway 9.1

I have an Json Response, I am using Evaluate JSON assertion(prefix is jsonData) & getting multiple values. 

Ex: ${jsonData.results} gives all values as a1, b2, c3

 

Then I am using Split variable (ex: variable - split) to split using comma (,)

It is spiting with the white-space after comma(,) In Audit logs I can see the spitted values with space after comma

 

 

Then I am using Run Assertions for Each Item Assertion with HTTPS Route,

http://abc.foo.com/${split}

https://abc.foo.com/ c3

(There is space between / & c3)

 

I get an error because the space in between the. How can i remove/trim the space?

 

Thanks,

Siddharth

Outcomes