i have this kind of string.
[
    {
        "uniqueID" : "com.product",
        "name" : "john doe",
        "price" : "15",
        "description" : "some description"
    },
    {
        "uniqueID" : "com.product1",
        "name" : "john doe",
        "price" : "15",
        "description" : "some descriptio"
    }
]
and i want to change this into array of objects. like
Array
(
 [0] => [
    {
        "uniqueID" : "com.product",
        "name" : "john doe",
        "price" : "15",
        "description" : "some descriptio"
    },
    [1] => 
    {
        "uniqueID" : "com.product1",
        "name" : "john doe",
        "price" : "15",
        "description" : "some description"
    },
]
)
how i can do this, i used this code
  $data = $this->input->post('productArray');
  $dataArray = explode('},' , $data);
but it has give me this kind of solution. which is not as my requirement.
Array
(
    [0] => [
    {
        "uniqueID" : "com.product",
        "name" : "john doe",
        "price" : "15",
        "description" : "some description"
    [1] => 
    {
        "uniqueID" : "com.product1",
        "name" : "john doe",
        "price" : "15",
        "description" : "some description"
    }
]
)
it will be honor for me if you help me in this.
 
     
    