【发布时间】:2019-04-10 18:28:02
【问题描述】:
enter image description here按组名排序json时,如何设置IsMerged Json属性为true?
SampleJson:
[{"SessionId":"s1",
"SessionName":"Session Name 1",
"StartDateTime":"2019-05-16T04:00:00",
"Groups":[
{"GroupID":"g1",
"GroupName":"Group Name1",
"HideChildren":false,
"IsMerged":false
},
{"GroupId":"g2",
"GroupName":"Group Name2",
"HideChildren":false,
"IsMerged":false
}
//...
}]
像上面一样,有不同的会话和组(嵌套 JSON)。 我可以使用 $filter 进行排序
【问题讨论】:
-
你说的isMoved属性是什么意思
-
当问题不包含其代码时,很难帮助您使用排序功能。
-
更多细节会有所帮助
-
我有一个嵌套的 Json,单击按钮我想按组名对数据进行排序,并希望将 IsMerged 属性设置为 True 以跟踪重新排列的组名和所有组名。
-
添加了更多细节和两张图片。谢谢
标签: javascript json angularjs