0

このコードを使用して、次の Json ファイルから会場名を取得しようとしています。しかし、Object does not support this property or method: 'Info.Response.venues.items.venue' エラーが発生します。私はあなたの助けに感謝します。

編集: 言い忘れましたが、ASP Xtreme Evolution を使用して Json データを解析しています。

<%
i = 0
    For Each key in Info.response.venues.items.keys()
        i = i + 1   
        For Each venue In Info.response.venues.items
            Response.write venue.Get("name")
        Next
    Next
    Response.Write "<br />" & i
%>

{
response: {

venues: {
    count: 27
    items: [
        {
            beenHere: 1
            venue: {
                id: "4227a500f964a520c51f1fe3"
                name: "Columbia University"
                : { }
                location: {
                    address:
                    crossStreet: "Broadway To Amsterdam Ave."
                    lat: 40.80821992957681
                    lng: -73.96215395358303
                    postalCode: "10027"
                    city: "New York"
                    state: "NY"
                    country: "United States"
                }
                categories: [
                    {
                        id: "4bf58dd8d48988d1ae941735"
                        name: "University"
                        pluralName: "Universities"
                        shortName: "University"
                        icon: {
                            prefix: "https://foursquare.com/img/categories/education/default_"
                            sizes: [
                                32
                                44
                                64
                                88
                                256
                            ]
                            name: ".png"
                        }
                        primary: true
                    }
                ]
                verified: true
                stats: {
                    checkinsCount: 14833
                    usersCount: 6138
                    tipCount: 52
                }
                beenHere: {
                    count: 0
                }
            }
        }
        {
            beenHere: 1
            venue: {
                id: "43bba61df964a520eb2c1fe3"
                name: "Whole Foods"
                contact: {
                    phone: "+12126735388"
                    formattedPhone: "+1 212-673-5388"
                    twitter: "WholeFoodsNYC"
                }
                location: {
                    address: "4 Union Square"
                    crossStreet: "btwn Broadway & University Pl."
                    lat: 40.734852286139734
                    lng: -73.99108529090881
                    postalCode: "10003"
                    city: "New York"
                    state: "NY"
                    country: "United States"
                }
                categories: [
                    {
                        id: "4bf58dd8d48988d118951735"
                        name: "Grocery or Supermarket"
                        pluralName: "Grocery or Supermarkets"
                        shortName: "Grocery Store"
                        icon: {
                            prefix: "https://foursquare.com/img/categories/shops/food_grocery_"
                            sizes: [
                                32
                                44
                                64
                                88
                                256
                            ]
                            name: ".png"
                        }
                        primary: true
                    }
                ]
                verified: true
                stats: {
                    checkinsCount: 43014
                    usersCount: 17275
                    tipCount: 212
                }
                url: "http://wholefoodsmarket.com"
                beenHere: {
                    count: 0
                }
            }
        }
}
4

0 に答える 0