1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    3
    Vote Rating
    0
    ReadyF is on a distinguished road

      0  

    Default Displaying JSON Object

    Displaying JSON Object


    Hello Everyone ...

    i have a problem to loop through a JSON Object and display datas which are inside ..

    i have the following structure :
    Code:
    "categories": {            "Pizzas": {
                    "NOM": "Poulet",
                    "DESCRIPTION": "Sauce Tomate, Fromage, Oignons, Poivrons, Olives, Champignons, Poulet",
                    "PRIX": ""
                },
                "Hamburgers": {
                    "NOM": "Double Cheese Burger",
                    "DESCRIPTION": "Double Portion Viande Hachée, Tomate, Salade,  Double Portion de Fromage, Frites",
                    "PRIX": ""
                },
                "Sandwichs": {
                    "NOM": "Frites",
                    "DESCRIPTION": "Frites, Salade, Tomate, Oignons,",
                    "PRIX": ""
                },
                "Paninis": {
                    "NOM": "Thon",
                    "DESCRIPTION": "Fromage, Thon",
                    "PRIX": ""
                },
                "Boissons": {
                    "NOM": "Pepsi Max",
                    "DESCRIPTION": "",
                    "PRIX": ""
                },
                "Desserts": {
                    "NOM": "Flan",
                    "DESCRIPTION": "",
                    "PRIX": ""
                }
            }
        }
    i'm just wondering how can i loop through it and display it ...

    Thank you !

  2. #2
    Sencha User
    Join Date
    Apr 2012
    Posts
    3
    Vote Rating
    0
    ReadyF is on a distinguished road

      0  

    Default


    Any Advices ???