Use a JSON array with objects with javascript

后端 未结 6 1576
执笔经年
执笔经年 2021-01-30 03:29

I have a function that will get a JSON array with objects. In the function I will be able to loop through the array, access a property and use that property. Like this:

6条回答
  •  后悔当初
    2021-01-30 03:41

    @Swapnil Godambe It works for me if JSON.stringfy is removed. That is:

    $(jQuery.parseJSON(dataArray)).each(function() {  
        var ID = this.id;
        var TITLE = this.Title;
    });
    

提交回复
热议问题