I've got a JSON object like this
var test = {
"value1": "",
"array1": {
"value2": 0,
"value3": 0
}
}
Now I want to Iterate over array1 in the test JSON and multiply the values and store them again ...
I tried it this way but it doesn't store it
jQuery.each(test.array1, function (i, val) {
test.array1.i = val * 1.3;
});
The multiplication works fine .. But how to restore it properly?
valat all, you can just use*=. Also, a plain oldfor..inloop is even better.