How to get all the properties from json data object

edited June 2017 in Technical questions

Hi webix team

How to get the all the properties from json object data,
in my example iam setting only one value, here i want to be set all the properties.

example

webix.ajax("data/Header.json", function(text){
        var headerInfo = webix.DataDriver.json.toObject(text);
        sblen = headerInfo.ROOT.HEADER[1].I.length, 
        sidebarItems = headerInfo.ROOT.HEADER[1].I;
        for(i=0;i<sblen;i++){
            var side_menu = sidebarItems[i].ID;
            if($$(side_menu)){
                $$(side_menu).setValue(sidebarItems[i].VALUE);
            }
        }
    },this);

json code

{  
                  "HIDDEN":"FALSE",
                  "ID":"TITLE",
                  "VALUE":"Trial Design Editor"
                  "name":"deepak"
               },
               {  
                  "HIDDEN":"FALSE",
                  "ID":"INSTANCENAME",
                  "VALUE":"Administrator"
               },
               {  
                  "HIDDEN":"TRUE",
                  "ID":"NOTIFICATION",
                  "VALUE":"NOTIFICATION"
               }

here iam setting one property i want to be set all properties from jsom data

Thanks in advance

Regards
Deepak

Tagged:
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!