Construyo mi json desde php 

            $marcas   = $this->MainModel->getmarcas();	
    		$valores = array();
    		foreach ($marcas as $value) {
    			$Where["id_marca"] = $value->id_marca;
    			$valores[] = $this->MainModel->getvalores($Where);
    		}
    
    		$this->output
                        ->set_content_type('application/json')
                        ->set_output(
                            json_encode(array(
                                'success'=>true,
                                'valores'=>$valores
                            ))  
            );

Quedando de esta forma : 

> creo que se puede deber a que tengo un [] que es el uso para insertar
> los datos del foreach

    {
      "success": true,
      "valores": [
        [
          {
            "valor1": "1231",
            "valor2": "345"
          },
          {
            "valor1": "45345",
            "valor2": "435"
          },
          {
            "valor1": "4535",
            "valor2": "34"
          }
        ]
      ]
    }

He intentado hacerlo de esta forma sin resultados:

     $.each(valores, function(index, element) {
         alert(element[index].valor1); 
     });


<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

    var valores = {
      "success": true,
      "valores": [
        [
          {
            "valor1": "1231",
            "valor2": "345"
          },
          {
            "valor1": "45345",
            "valor2": "435"
          },
          {
            "valor1": "4535",
            "valor2": "34"
          }
        ]
      ]
    };

    $.each(valores, function(index, element) {
        console.log(element[index].valor1); 
    });





<!-- language: lang-html -->

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>





<!-- end snippet -->

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

    var valores = {
      "success": true,
      "series": [
        [
          {
            "valor1": "1231",
            "valor2": "345"
          },
          {
            "valor1": "45345",
            "valor2": "435"
          },
          {
            "valor1": "4535",
            "valor2": "34"
          }
        ]
      ]
    };

    $.each(valores, function(index, element) {
        console.log(element[index].valor1); 
    });

<!-- language: lang-html -->

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>


<!-- end snippet -->