I want to support my application that it can receive different kinds of json in a format like: {"EXAMPLE": [ "example1","example2","example3","example4" ]}
The problem I have here is that EXAMPLE could be any name. What I want is only receiving the values: example1,example2,example3,example4 (like in a for loop or something) I tried
for (var i = 0; i < res.body.length; i++) {
console.log(res.body[i]);
}
what it does is it prints litterly every character from the res (json data) How can I make it so it will only print example1,example2 etc without referring to the object names?
I am working in javascript by the way