parse json struct of node into node constructor