Search code examples
postman

How to send a parameter which is dictionary in Postman


I have just started using Postman for testing my API. I am able to send list of request parameters, but could not figure out how will I send a parameter which is a dictionary,

say my request has two different parameters, first is property, and the structure of property is something like "ptype":"residential","mtype":"requirement","dtype":"sale","category":"multistoryapt","city":"Gurgaon,Mumbai"

How can I send these parameters together ? I have explored on internet and there are ways of sending an array but not a dictionary.

Am I missing something ?


Solution

  • You could send data as raw body with the Content-Type application/json, this way it's up to you how the data is structured.