Code: Select all
MsgBox converted.data.address
I know it would be a basic error that I'm doing but I can't find out what
Here's my code:
Code: Select all
HTTP := ComObjCreate("MSXML2.XMLHTTP.6.0")
HTTP.Open("GET", uri)
HTTP.SetRequestHeader("Content-Type", "plain/text")
HTTP.Send()
result := HTTP.responseText
converted := JSON.Load(result)
txt := converted.data.address
switch txt{
case "XY":
MsgBox, "XY"
case "AR":
MsgBox, "AR"
default:
MsgBox, "Error"
}