I am trying to display the contents in a Json array from an api into my html. How do I do it?
This is my Json array.
{
page: 2,
per_page: 3,
total: 12,
total_pages: 4,
data: [
{
id: 4,
first_name: "Eve",
last_name: "Holt",
avatar:
"https://s3.amazonaws.com/uifaces/faces/twitter/marcoramires/128.jpg"
},
{
id: 5,
first_name: "Charles",
last_name: "Morris",
avatar:
"https://s3.amazonaws.com/uifaces/faces/twitter/stephenmoon/128.jpg"
},
{
id: 6,
first_name: "Tracey",
last_name: "Ramos",
avatar: "https://s3.amazonaws.com/uifaces/faces/twitter/bigmancho/128.jpg"
}
]
};
I have JQuery Ajax request to get the data from API:"https://reqres.in/api/users?page=2"