returning topics as json.