Possible Duplicate:
I have a nested data structure / JSON, how can I access a specific value?
Please I get this following json string in my ajax side :
    {
    "products": [
        {
            "id":            48,
            "quantity":      1,
            "priceByLine":   "950,00 €",
            "name":          "Filtre Mixte",
            "price":         "950,00 €"
        }],   
    "total": "950,00 €",
    "productTotal": "950,00 €"
   }
To get the total price, I just have to do :
alert(data.total);
But when I want to get the Id, I do :
alert(data.products.id); 
It gave me undefined !
Please masters, how could I do to get the id ?
Thanks in advance !
 
     
     
     
     
    