fixing node.json format and adding a type property if there is none specified in the node data