I know this question has been answered at this post with same question. however, my question is the Json response by the most upvoted answer will be a json list with no key value. (you can also check the sample json from the official github website)
I am using Moshi library to parse json. However, I have no idea how to parse that Json list whose key value is not set.(only a list present in the Json with no Key value for that list) this is what it looks like though
[
{
"id": 1296269,
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
"...": "...",
...
},
{
"id": 1296255,
"node_id": "somevalue",
"...": "...",
}
...
]
since the purpose of asking this question is to get a list of repositories of a user, you could leave any code snippet to get that type of list Json to Kotlin data class.
I appreciate your help in advance.