Refactoring json2node and documentation