让我们看看,我有一个 jquery 解析的 json 对象,它是这样的(但非常大):
[
{answered: 0,
caller: 4,
callid: 4,
expired: 0,
groupid: 2,
location: "jubin",
name: "vahid",
personid: 3,
presense: 1367323732,
response: null,
text: null,
time: 1367336754,
type: 0},
{answered: 0,
caller: 6,
callid: 5,
expired: 0,
groupid: 2,
location: "jubin",
name: "vahid",
personid: 3,
presense: 1367323732,
response: null,
text: null,
time: 1367336766,
type: 0},
{answered: 0,
caller: 4,
callid: 4,
expired: 0,
groupid: 2,
location: "jubin",
name: "reza",
personid: 1,
presense: 1367392633,
response: null,
text: null,
time: 1367336754,
type: 0},
{answered: 0,
caller: 6,
callid: 5,
expired: 0,
groupid: 2,
location: "jubin",
name: null,
personid: 1,
presense: 1367392633,
response: null,
text: null,
time: 1367336766,
type: 0}
]
我喜欢这样的东西(短版):
[
{
callid: 4,
name: {"vahid", "reza"}
},
{
callid: 5,
name: {"vahid", null}
}
]
任何人都可以帮忙吗,
我几乎尝试了所有的事情,但我肯定在某个地方做错了,谢谢转发