I tried $json = json\_decode($tracks1, true);
---------------------------------------------

```
    Array ( [0] => [{"3430":"3430","1279":"1279","4925":"4925","3435":"3435","1899":"1899","1900":"1900","1901":"1901","1905":"1905","3971":"3971","4306":"4306","4962":"4962","4964":"4964"}] )

```

Heading
-------

> 
> I want output like this
> 
> 
> 

```
Array
(
    [3430] => 3430
    [1279] => 1279
    [4925] => 4925
    [3435] => 3435
    [1899] => 1899
    [1900] => 1900
    [1901] => 1901
    [1905] => 1905
    [3971] => 3971
    [4306] => 4306
    [4962] => 4962
    [4964] => 4964
)

```

I tried every thing . the error shown is 

> 
> json\_decode() expects parameter 1 to be string, array given
> 
> 
> 

When i used `$json = json_decode($tracks1, true);`