Avatar of stargateatlantis
stargateatlantis
 asked on

Trying to parse the json data getting both key name and value

I have the following JSON data.  Using JavaScript how do i parse the following JSON data getting the key name and value.   Now the area i am focusing is the DATA node in the JSON

{"total":154,"per_page":20,"current_page":1,"last_page":8,"from":1,"to":20,
"data":[{"id":1,"name":"the name","contact":"Rob"},{"id":2,"name":"the name","contact":"Joe"}]}

Open in new window

JavaScript

Avatar of undefined
Last Comment
leakim971

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
leakim971

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy