Question: I am trying to get all product that are in my client's seller account. The problem is that Amazon MWS ListMatchingProducts api call returns a response of maximum 10 products. Actually I want to get all products that are in the seller's account. I have tried hard to find a solution for several days. Any helpful suggestion will be highly appreciated and thanked.

Answer: 
```
$finalresult = array();
$icount = 0 ;
foreach($result4 as $row) {
     foreach ( $row as $key => $val ) {

        $finalresult[$icount]["column"] = $key;
        $finalresult[$icount]["value"] = $val;
        $icount++;
     }
}   
$data['demo_info'] = $finalresult;

```
Simply Generate the array like that and return - 

```
$newArray = array_map(function($value, $key){
    return array('column' => $key, 'value' => $value);
}, $array, array_keys($array));

json_encode($newArray);

```