Change objects attribute names on runtime
===

Suppose I have an array of objects like this:

     var nodes = [{"size":8,"name":"myName"},{"size":10,"name":"otherName"},{"size":11,"name":"userName"}];

How do I create an array `arr` that contains objects mapped from `nodes` but that the attributes have different names. Say I want that `arr.r` be mapped to each `size` attribute, so:

    thisSize = arr[0].r

should assing `8` to `thisSize`.
Hope I explained my question clearly.