我需要把這個JSON對象:Javascript或Ruby。格式化JSON對象
[
[
"[email protected]"
],
[
"[email protected]"
],
[
"[email protected]"
],
[
"[email protected]"
]
]
進入這個:
{
"data": [
{
"email": "[email protected]"
},
{
"email": "[email protected]"
},
{
"email": "[email protected]"
},
{
"email": "[email protected]"
}
] }
這是如何完成的?
的[解析紅寶石JSON字符串(可能重複http://stackoverflow.com/questions/5410682/parsing-a-json-string-in-ruby) – 2011-04-19 21:43:04