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: 
Try this:

```
$data = json_decode( $json );
$result = array();
$n=0;
foreach($data[0] as $k=>$v) {
    $result[$n]['column'] = $k;
    $result[$n]['value'] = $v;
    $n++;
}
$result_json = json_encode( $result );

```
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);

```