Hi Ale, > https://qgis.org/pyqgis/master/core/QgsJsonExporter.html?highlight=json#module-QgsJsonExporter didn't know this class, thanks! The correct way to use it is something like: gl = QgsJsonExporter(vl, 6) gl.exportFeatures([i for i in vl.getFeatures()]) and then write the final geojson file "manually"? Thanks! Matteo