[Solved] Listing specific values from JSON object


Please make sure you do more research next time when you post another question.
This object loop, as you mentioned, will not work on your data as it as array of objects and not an object. So, will have to loop through as an array.
Here is what you can use:

    var obj = [
                 {
                   "key":"value",
                   "key2":"value2",
                   "key3":"value3",
                 },
                 {
                   "key":"value",
                   "key2":"value2",
                   "key3":"value3",
                 }
           ];
           var list = [];
           for(var i = 0; i<obj.length; i++) {
                list[i] = obj[i].key2;
           }
           console.log(list);

Your list will contain all the values you need.

3

solved Listing specific values from JSON object