bpistole
7 years agoContributor
How do I create a key/value array.
I'm new to SoapUI Pro, I've been using it just a couple of weeks so far.
I am executing a REST API call and one of the parameters requires a key/value array.
Request: api/search/event?&secTags[0][tagTypeId]=122&secTags[0][value]=three&&activePage=1
Here's how I am trying to create the key/value array:
def secTagsArray= new groovy.json.JsonBuilder()
secTagsArray{
tagTypeId "122"
value "three"
}
I am not sure if that is correct because I am unable to figure out how to take that secTagsArray variable and insert it into the proper REST Request parameter.
Any help would be greatly appreciated.
Billy