Greetings,
I am dealing with social issues. I know the value of the decode JSON table, but now I have a problem.
local UserDataJson = json.encode( UserData, { indent = true } )
{
“scriptData”: {
“friendsList”: {
“5ce69a4ecf0xxxxxx237d5d4”: {
“displayName”: “Mark”
},
“5cexxxxxxdddc5237d664”: {
“displayName”: “Peter”
}
}
}
}
In the middle is the User ID, I used xxx to hide.
I used UserDataJson.friendsList to get a table reply.
I tried to use UserDataJson.friendsList[1] or UserDataJson.friendsList.displayName to get nil.
Is there a way to get the middle UID and displayName individually?
Thank you.

