How to send Arrays with GET or POST request in POSTMAN

Associative Arrays or Dictionaries

$ass_array = array(
“name” => “Ridwan Olalere”,
“twitter” => “@ridwan_olalere”
ass_array = {
“name”: “Ridwan Olalere”,
“twitter”: “@ridwan_olalere”

A List / or simple array

$arr = array(1, 2, 3, 4, 5);
$arr2 = array(“lagos”, “Nigeria”);
arr = [1, 2, 3, 4, 5]
arr2 = [“lagos”, “Nigeria”]

Complex array or array of arrays

$complex_arr = array(
array(“name”=>”Ridwan Olalere”, “twitter”=>”@ridwan_olalere”)
complex_arr=[{"name":"Ridwan Olalere", "twitter":"@ridwan_olalere"}]
//NB: the same of the complex array can be as large as you wish. mine is of size 1 for sake of simplicity

Ridwan Olalere (Didi Kwang)

Written by

Product Growth @ OPay

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade