minor edit to jsonNodesLinks to include type on output