Forum Discussion

agp2489's avatar
agp2489
Occasional Visitor
8 years ago

How to pass a Query Parameter in a Get Rest Request wherein the Parameter is an array of JSON object

For Eg 

 

If there is a Request wherein the Query Parameter looks as follows 

 

QueryParameterName=[{Item1:"string", Item 2:"string"},{Item1:"string1", Item 2:"string2"}]

 

The complete URI would be as follows 

 

https://{{Hostname}}:{{PortNumber}}/ResourceName?QueryParameterName=[{Item1:"string", Item 2:"string"},{Item1:"string1", Item 2:"string2"}]

 

I tried the above , but somehow SOAP UI gives me activity Timed out . Am I missing something here 

  • PaulMS's avatar
    PaulMS
    Super Contributor

    Is the JSON data invalid with non-quoted names?

     

    The default validation occurs against the strict RFC 4627 specification which requires for names / keys to be in double quotes. E.g.: {example:"value"} is invalid but {"example":"value"} is valid.

    https://www.freeformatter.com/json-validator.html