I have two JSON objects in Javascript, identical except for the numerical values. It looks like this:
var data = { \"eth0\":{\"Tx\":\"4136675\",\"Rx\":\"13
You can use an object traversal module like nervgh/object-traverse to do this.
var result = {} Object.traverse(old, function(node, value, key, path) { var resultObject = result for(var n=0; n