我创建了以下JSON:这是json错误吗?
{ "posts" : [
{"post" :
{"person" : somePerson,
"messages" : [person says : Hello how are you,person2 says : I\'m fine]
}
},
{"post" :
{"person" : someOtherPerson,
"messages" : [person says : I\'m happy,person2 says : me too]
}
}
]
}
但jQuery的.done不被调用此输入。我怀疑json的格式有问题。我不知道我是否被允许在json对象中传递数组“消息”。如果我不是,我该如何解决这个问题?
消息应该是一个对象。钥匙和价值必须被引用。 – steven