我有像这样的填充JSON/JS数据:检索JSON对象?
var settingDefs = [];
settingDefs.push({
name:'responses', label:'Responses', type:'aeditor',
defaultValue: Object.toJSON([
{"id":"1", "name":"Bob", "text":"Is here"},
{"id":"2", "name":"James", "text":"Online"},
])
});
我将如何检索条目说,如果我有“1”,我想用“1”来检索名称/文本查找该条目(条目1)?
为什么使用Object.toJSON? – 2012-02-09 19:47:21
嗯,我是http://community.spiceworks.com/plugin/9 – Zeno 2012-02-09 20:06:02