Consider this:
List<String> users = repo.findAllById(id):
And this:
Public Users{
int id;
string name;
}
The list of users contain a json of users with id and names. My question is, how do I convert the list of strings(json) into a list of users. Thanks everyone.
Eg. of list:
[user1:
{
“id”: “24”,
“name”: “name”
}
user2:
{
“id”: “24”,
“name”: “name”
}
]