duup
asked on
parsing json call
Hi, i'm calling a function (ipinfo.io) to get info about geo.
The result back is like this;
{
"ip": "8.8.8.8",
"hostname": "google-public-dns-a.googl e.com",
"loc": "37.385999999999996,-122.0 838",
"org": "AS15169 Google Inc.",
"city": "Mountain View",
"region": "California",
"country": "US",
"phone": 650
}
How can I parse this now directly into variables or maybe class with properties ip, hostname, loc etc?
What is the easiest way for this in a forms application, not asp?
The result back is like this;
{
"ip": "8.8.8.8",
"hostname": "google-public-dns-a.googl
"loc": "37.385999999999996,-122.0
"org": "AS15169 Google Inc.",
"city": "Mountain View",
"region": "California",
"country": "US",
"phone": 650
}
How can I parse this now directly into variables or maybe class with properties ip, hostname, loc etc?
What is the easiest way for this in a forms application, not asp?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.