'Set Type of FeatureCollection in GeoJSON without features?

I have a nodejs server that shall receive, store and return GeoJSON FeatureCollections. Depending on the Route, I know the expected Type of the FeatureCollection. I might however receive an empty Feature Collection every now and then. In that case I would store an empty Feature collection.

Now, the software that I use to request the GeoJSON FeatureCollections is QGis. If QGis receives a non-empty Feature Collection, it recognizes the type (Point, Polygon or Line).

However, if I ever click "Reload" in QGis (so, send the same request to the server again) while the FeatureCollection is empty, QGis forgets the type and I have to remove and add the VectorLayer by hand.

Is there any way to mark the type of FeatureCollection in GeoJSON to tell QGIS "This shall include points/lines/polygons but is currently empty"?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source