I have a small problem parsing json response because it constantly keeps on getting updated whenever i send a request.All the examples I have seen makes us provide the tag n
Where jsonObj is the JSONObject which contains some data, By these following code you can get only field names, if u want for column values then you can add further for value for keys.
List listArray = new ArrayList();
Iterator iter = jsonObj.keys();
int count=0;
while(iter.hasNext()){
listArray.add((String)iter.next());
count +=1;
}
System.out.println(listArray);
output: [projector, video_conference, polycom, lcd, digital_phone, speaker_phone]