Request item is not returning in function in ajax

0

I have a problem in my application where I have no idea how to solve it, much less the reason for the problem

It turns out that an index specifically is not returning in my request within the jquery function

$.ajax({
        url: "http://",
        type: 'POST',
        data: {texto: text},
        success: function(data){
            console.log(data);
        }

    });

Sofarsoperfect!

Butlookwhatreturnsinconsole.log

Within the function it returns only the array items, not the sugestions either,

The right thing would be to return this

I do not even know how to search for this.

In php there is nothing more, just the results, and then a json_encode ()

$return->suggestions= $suggestions->suggestions;
$return->items      = $this->getImagem($produtos);

return json_encode($return);
    
asked by anonymous 16.03.2015 / 18:56

0 answers