【发布时间】:2018-12-07 02:31:01
【问题描述】:
这是我想从积分中删除 { points: 55, bonus: 20 } 的 JSON
{
_id: 3,
name: "ahn",
age: 22,
type: 2,
status: "A",
favorites: { artist: "Cassatt", food: "cake" },
finished: [ 6 ],
badges: [ "blue", "red" ],
points: [
{ points: 81, bonus: 8 },
{ points: 55, bonus: 20 },
{ points: 56, bonus: 25 }
]
}
我想看看这个结果
{
_id: 3,
name: "ahn",
age: 22,
type: 2,
status: "A",
favorites: { artist: "Cassatt", food: "cake" },
finished: [ 6 ],
badges: [ "blue", "red" ],
points: [
{ points: 81, bonus: 8 },
{ points: 56, bonus: 25 }
]
}
【问题讨论】:
标签: php arrays mongodb collections document