我在 c# 中有一个 JSON 对象。我想在 c# 中迭代它。对象中的所有属性都是动态的。在下面的代码中tr5、tr5td7、tr6、tr6td4是动态名称,可以在另一个对象中更改。所以请帮助我。
"trList": {
"tr5": {
"tdList": {
"tr5td7": {
"td": {
"outcomesName": "Weight (kg) Simvastatin",
"group": {
"groups": "Entry",
"dosage": "",
"n": ""
},
"values": [
{
"type": "Mean",
"symbolType": "x¯",
"value": "78.4"
},
{
"type": "SE",
"symbolType": "S",
"value": "3.1"
}
],
"pattern": {
"arr": [
{
"values": "78.4",
"pattern": "number",
"type": "Mean",
"symbolType": "x¯"
},
{
"values": "3.1",
"pattern": "number",
"type": "SE",
"symbolType": "S"
}
],
"pat": "number-separator-number-separator-",
"tdId": "tr5td7"
},
"note": "",
"outcomesNote": "",
"groupsNote": ""
}
},
}
}
"tr6": {
"tdList": {
"tr6td4": {
"td": {
"outcomesName": "Height (kg) Simvastatin",
"group": {
"groups": "Entry",
"dosage": "",
"n": ""
},
"values": [
{
"type": "Mean",
"symbolType": "x",
"value": "70.4"
},
{
"type": "SE",
"symbolType": "S",
"value": "5"
}
],
"pattern": {
"arr": [
{
"values": "70.4",
"pattern": "number",
"type": "Mean",
"symbolType": "x"
},
{
"values": "5",
"pattern": "number",
"type": "SE",
"symbolType": "S"
}
],
"pat": "number-separator-number-separator-",
"tdId": "tr6td4"
},
"note": "",
"outcomesNote": "",
"groupsNote": ""
}
},
}
}
}