我有一个json来自使用以下rest API
需要知道如何获得以下
读取Json String并需要获取Json参数值, 例如 - “address_components”数组元素的值 从“formatted_address”获取价值
以下是我用于从API
获取Json字符串的代码Dim restReq, url,restReq1,strOutput
Set restReq = CreateObject("Microsoft.XMLHTTP")
url = "https://maps.googleapis.com/maps/api/geocode/json?address=Colombo&key=AIzaSyBt18lOhS5T9PlV1I2FVYooc4dKsSJZYAA"
restReq.open "GET", url, false
'HTTP.Open "GET", ("https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementServiceRest.svc/customer/account/{my_account_id}/campaign"), False, "{my_user_name}", "{my_password}"
restReq.send
Dim result
result = restReq.responseText
感谢您的回复。
感谢, 打包机。