I have object like this:
{
"first" : "value1",
"second" : "value2"
}
I want to access both values in for
cycle. Order of getting values doesn't mind. Usage is for something like value = value + "something"
. How to acces values which key names I don't know? Of course I can get keys from helping array like:
var keys = ["first", "second"];
And then get them by index and with them get value1 and value2 from my original array. Is there some better way? For some reason foreach doesn't work either.