Bryan Bryan - 7 months ago 38
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.

var data = JSON.parse(apiResponse);

var phoneNumber = data.phoneNumber;