How to send a parameter which is a dictionary in Postman

I just started using Postman to test my API. I can send a list of request parameters, but could not understand how I will send a parameter, which is a dictionary,

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

How can I send these parameters together? I studied on the Internet, and there are ways to send an array, but not a dictionary.

Did I miss something?

+4
source share
3 answers

You can send data as a raw body using the Content-Type / json application, as it is up to you how the data is structured.

+3
source

- json, :

object[ptype], object[mtype], object[dtype], object[category], object[city]
+3

application/json, :

{
    "key1":"value1",
    "key2":"value2"
}

For a comprehensive resource on how to serialize JSON, go to http://www.newtonsoft.com/json/help/html/SerializingCollections.htm

+2
source

Source: https://habr.com/ru/post/1608767/


All Articles