code: def geojson(self, feature_id):
          
          if self._geojson.get('id', feature_id) == feature_id:
              return self._geojson
          else:
              geo = self._geojson.copy()
              geo['id'] = feature_id
              return geo
docs: Return GeoJSON with ID substituted.