This is my json data
{
"profiles": {
"578ed5c5bab24186a6b0f7cd9a952e10": {
"name": "as",
"type": "custom",
"created": "2022-11-02T09:56:53+03:00",
"lastUsed": "2022-11-02T09:56:53+03:00"
},
"41f62754d535457db1c353872a8aafcf": {
"name": "(Default)",
"type": "custom",
"created": "2022-11-02T09:56:50+03:00",
"lastUsed": "2022-11-02T09:56:50+03:00"
}
},
"selectedProfile": "578ed5c5bab24186a6b0f7cd9a952e10",
"settings": {
"enableAdvanced": false,
"profileSorting": "byName"
},
"version": 3
}
I want to get random numberized 578ed5c5bab24186a6b0f7cd9a952e10
profile names.
Everytime will be updated this data. That's why, I want to filter to profile names.
I want to get profile names values in profiles.
In normally I can access datas with this way
public class _41f62754d535457db1c353872a8aafcf
{
public string name { get; set; }
public string type { get; set; }
public DateTime created { get; set; }
public DateTime lastUsed { get; set; }
}
public class _578ed5c5bab24186a6b0f7cd9a952e10
{
public string name { get; set; }
public string gameDir { get; set; }
public string type { get; set; }
public DateTime created { get; set; }
public DateTime lastUsed { get; set; }
}
public class Profiles
{
public _578ed5c5bab24186a6b0f7cd9a952e10 _578ed5c5bab24186a6b0f7cd9a952e10 { get; set; }
public _41f62754d535457db1c353872a8aafcf _41f62754d535457db1c353872a8aafcf { get; set; }
}
public class Root
{
public Profiles profiles { get; set; }
public string selectedProfile { get; set; }
public Settings settings { get; set; }
public int version { get; set; }
}
public class Settings
{
public bool enableAdvanced { get; set; }
public string profileSorting { get; set; }
}
I want to get without calling class Profiles
,class _578ed5c5bab24186a6b0f7cd9a952e10
and public _41f62754d535457db1c353872a8aafcf
I want to get with like public {0} profiles { get; set; }
//after profile firt code class