Answer the question
In order to leave comments, you need to log in
How to "reach" an array of json object on json server?
Hello everyone, I have such a json array
"tasks":[
{
"id": 1,
"listId": "studing",
"listName": "Учёба",
"active": true,
"tasksArray": [
{
"id": 0,
"completed": true,
"taskText": "studing tas1"
},
},
]
http://localhost:3004/tasks
tasksArray
this object . How should the get request look like, or rather, at what url should it be carried out so that I would see such data at the given url?{
"id": 0,
"completed": true,
"taskText": "studing tas1"
},
Answer the question
In order to leave comments, you need to log in
Without changing the backend - no way.
With a GET request, you receive a full JSON response from the server, and on the client side you select the necessary data.
As an option, modify the API on the server side, passing a certain parameter by which the server will return a limited amount of data
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question