JQuery get data from JSON array

后端 未结 4 1889
半阙折子戏
半阙折子戏 2020-12-15 11:34

This is part of the JSON i get from foursquare.

JSON

tips: {
    count: 2,
    groups: [
    {
        type: \"others\",
        na         


        
4条回答
  •  北海茫月
    2020-12-15 11:47

    You're not looping over the items. Try this instead:

    $.getJSON(url, function(data){
        $.each(data.response.venue.tips.groups.items, function (index, value) {
            console.log(this.text);
        });
    });
    

提交回复
热议问题