jQuery - Search through JSON array

后端 未结 3 1703
故里飘歌
故里飘歌 2021-02-06 16:52

I need to search through JSON data and find every object that contains the \"kind\" \"playlist\" and then go through the tracks and pull information which will be put into a hmt

3条回答
  •  星月不相逢
    2021-02-06 17:51

    try this code:

    var objJson = jQuery.parseJSON(json);
    jQuery.each(objJson , function(i, val) {
          alert(val);
        });
    

提交回复
热议问题