How do I access properties of a javascript object if I don’t know the names?
You can loop through keys like this: for (var key in data) { console.log(key); } This logs “Name” and “Value”. If you have a more complex object type (not just a plain hash-like object, as in the original question), you’ll want to only loop through keys that belong to the object itself, as opposed to … Read more