Link to home
Start Free TrialLog in
Avatar of duup
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.google.com",
  "loc": "37.385999999999996,-122.0838",
  "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
Avatar of Luis Pérez
Luis Pérez
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial