我有一组数据需要转换成特定的结构,以便第三方插件可以正确加载它。
我能够实现的当前最接近的阵列是下面这个,从这里我被困住了。
数组
[
[
["item1"],
["itemname"],
["item desc"],
["05\/14\/2014"]
],
[
["item12"],
["itemname2"],
["item desc2"],
["05\/14\/2014"]
]
]
json_encoded
[
0 => [0 => "Value1", 1 => "Value2", 2 => "Value3" ],
1 => [0 => "Test", 1 => "Test2", 2 => "Test3" ],
2 => [0 => "Random1", 1 => "Random2", 2 => "Random3" ]
]
我如何将其转换为具有这样的结构,
[
{"0":"Value1","1":"Value2", "2":"Value3"},
{"0":"Test", "1":"Test2","2":"Test3"},
{"0":"Random1","1":"Random2","2":"Random3"},
]
任何想法将不胜感激,非常感谢!
慕虎7371278
烙印99