Lets say I have a JSON object like:
var objDBandIDs = {"vcFirstName":"enFN"
,"vcSurName":"enSN"
,"vcSex":["rdoM", "rdoF"]
,"intEmployed":"enEmp"
,"vcAddress":"enADR"};
In JavaScript I can iterate through this object using:
for( var strKey in objDBandIDs ) {
var rightSide = objDBandIDs[strKey];
...
}
Where strKey is the label e.g. vcFirstName, rightSide would be enFN.
Is there a way to create a loop that instead of the left as an iterator, the right side is used to iterate through the JSON?