Json return function

Json return function

Hello,

I want to send object of type JSON in return of the function , but when received I want get the values ​​by array.

result={ "Descricao" : [{ "Carro_ID" : "Mercedes", "Carro_QTD" : "10" },{ "Carro_ID" : "GM", "Carro_QTD" : "30" }] }

In JavaScript I get:

result[Descricao][1].Carro_ID
result[Descricao][1].Carro_QTD
result[Descricao][2].Carro_ID
result[Descricao][2].Carro_QTD

How I do in Zoho?