Way to produce json from topology