【发布时间】:2017-03-14 13:12:31
【问题描述】:
我已经阅读了很多帖子,但不知道如何为这个 json 创建类。
{
"snippet": {
"parentGroupId": "69ea5920-0157-1000-0000-0000028e1b90",
"processors": {},
"processGroups": {
"1231-23a": {
"clientId": "50b3ec1a-c123-1e4f-718c-b0323fb1e175",
"version": 0
}
}
}
}
问题是属性“1231-23a”可以像这样在我的 json 中改变:
{
"snippet": {
"parentGroupId": "69ea5920-0157-1000-0000-0000028e1b90",
"processors": {},
"processGroups": {
"4544-412f": {
"clientId": "50b3ec1a-c123-1e4f-718c-b0323fb1e175",
"version": 0
}
}
}
}
感谢您的帮助
【问题讨论】:
-
processGroups 属性可以有很多孩子,还是只有一个?
-
processGroups 只有一个孩子