var json = {"1" : "JENNIFER", "2" : 28}; //想分别获取它的key 和 value var keyArray=[],valueArray=[]; for (var key in json) { keyArray.push(key); valueArray.push(json[key]) }