Bryan Bryan - 1 year ago 70
Javascript Question

How to get certain data from JSON

How do I classify the data in JSON returned by the API with javascript.

The data given by the API:

"statusDescription":"The request is successful."

I want to receive the number from
with javascript.

Answer Source
var data = JSON.parse(apiResponse);

var phoneNumber = data.phoneNumber;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download