How to get/list all field names of a JSON data with ExtJS?
问题 I have this json data: [ {"ID":"1","name":"google","IP":"69.5.33.22","active":"true"}, {"ID":"2","name":"bing","IP":"70.5.232.33","active":"false"} ] I want to get the all property names (?), like: name,ID,IP,active Note: I don't mind what is there at "name" and "IP" like google, 70.5.232.33, etc. Just, I want to get the fields itself. 回答1: var jsonString = [ {"ID":"1","name":"google","IP":"69.5.33.22","active":"true"}, {"ID":"2","name":"bing","IP":"70.5.232.33","active":"false"} ]; var