public function deserialize($data)
    {
        $result = json_decode($data, true);
        if ($result === null) {
            return $data;
        }
        return $result;
    }
public function deserialize($data)
    {
        $result = json_decode($data, true);
        if ($result === null) {
            return $data;
        }
        return $result;
    }
public function deserialize ( $ data ) { $ result = json_decode ( $ data , true ) ; if ( $ result === null ) { return $ data ; } return $ result ; }
Deserialize JSON into an assoc array

@param string $data JSON encoded string

@return mixed
Deserialize JSON into an assoc array