Output nodes to JSON and read from config