Hii… I have below JSON structure.
{
"playerCards":{
"6024dddd3a60164d2c237761":[
{
"c":"R",
"n":9,
"cc":1
},
{
"c":"B",
"n":0,
"cc":0
},
{
"c":"Y",
"n":5,
"cc":1
},
{
"c":"G",
"n":10,
"cc":0
},
{
"c":"G",
"n":12,
"cc":0
},
{
"c":"B",
"n":7,
"cc":1
},
{
"c":"R",
"n":7,
"cc":1
}
],
"6024ddee3a60164d2c237768":[
{
"c":"Y",
"n":1,
"cc":1
},
{
"c":"B",
"n":10,
"cc":1
},
{
"c":"R",
"n":2,
"cc":0
},
{
"c":"Y",
"n":4,
"cc":0
},
{
"c":"K",
"n":14,
"cc":3
},
{
"c":"Y",
"n":11,
"cc":1
},
{
"c":"Y",
"n":6,
"cc":1
}
]
}
}
I have userID as key. So i have to parse this JSON in Dictionary variable.
I have checked this link : Deserialize JSON Structure
How we can do with JSONUtility ?