node.js implementation of the json2json library - restructure your json object