我想補充的JSON
像新的一樣的obj:如何使用jQuery或JavaScript在JSON中添加新對象?
"128": {
"Msg": [{
"me": "hi"
}, {
"user": "hello"
}, {
"me": "whtup"
}]
}
在JSON
的存在JSON
對象例子:
{
"188": {
"Msg": [{
"me": "hi"
}, {
"user": "hello"
}, {
"me": "ki chal riha hai"
}]
},
"123": {
"Msg": [{
"me": "hi"
}, {
"user": "hello"
}, {
"me": "whtup"
}]
},
"128": {
"Msg": [{
"me": "hi"
}, {
"user": "hello"
}, {
"me": "whtup"
}]
}
請對此 看http://stackoverflow.com/questions/736590/how-do-i- add-new-attribute-element-to-json-object-using-javascript – manishbagra 2012-04-02 05:37:56
我想在json中添加json obj這是用於添加json obj數組類型的數據 – pargan 2012-04-02 05:50:14