我的目标是得到一个像这样的json数组:varargs=[{name:'test',value:1},{key:'test2',value:2}];我怎样才能得到下面的代码来构建一个像上面那样的数组?this.dependentProperties=[];//arrayfunctionaddDependentProperty(depName,depValue){dependentProperties.push(newArray(depName,depValue));}通过使用push方法,我最终得到了一个像这样的json符号:args:{[["test1",1],["test2",2]