PHP的示例输出:
{ "RootName_0":{"Id":1,"ValId":1,"Value":"Colour","Text":"Blue"},"RootName_1":{"Id":1,"ValId":2,"Text":"Red"} }
我如何使用Backbone.js或jQuery只有:
[ {"Id":1,{"Id":1,"Text":"Red"} ]
如果使用PHP编辑JSON更容易,那就这样吧.