There are two output functions in PostGIS Topology: topology.ST_AsGML and topology.ST_AsTopoJSON. GML is an OGC standard, while TopoJSON is a GeoJSON-like text-based exchange format. It was designed to reduce the size and redundancy of GeoJSON for datasets composed of neighboring polygons.