I found the problem. !!!
Just in the hospital, I kept thinking about the method you provided.
local FriendData = response:getScriptData()
local FriendJson = json.encode( FriendData , { indent = true }
local decoded, pos, msg = json.decode( FriendJson )
if not decoded then
print( "Decode failed at “…tostring(pos)…”: "…tostring(msg) )
else
print( decoded.friendsList ) – Get a table value
for k,v in pairs( decoded.friendsList ) do
print( "UID: “…k…” | " )
for a,b in pairs( v ) do
print( "displayName: “…a…” | "…b )
end
end
end
If I only use in pairs once, the latter will get error.
Dear Nick, thank you for your guidance. 