【发布时间】:2017-11-01 20:36:20
【问题描述】:
我有一个类似的对象:
[
{
"text" : "Address of Bowlers game center in Chennai?",
"entities" : [
{
"entity" : "action",
"value" : "business"
},
{
"entity" : "intent",
"value" : "fetchItems"
},
{
"entity" : "bizCategory",
"value" : "bowling",
"start" : 11,
"end" : 30
},
{
"entity" : "wit$location",
"value" : "Chennai",
"start" : 34,
"end" : 40
}
]
},
{
.....more objects
}
]
现在我必须对这个对象进行一些操作,并使用 Angular js 将被操作的对象保存到 .json 文件中。
var originalObject = $http.get("data/chennai.json");
var manipuatedObject; // this is the manipulated object i get after applying some changes on originatalObject.
现在我怎样才能将这个manipuatedObject 保存到 json 文件中。
【问题讨论】:
标签: angularjs