I load a GeoJSON with OGR and apply the method GetLayerCount(). How must the GeoJSON look like that GetLayerCount() > 1?
driver = ogr.GetDriverByName("GeoJSON")
dataset = driver.Open(my.geojson, 0)
# should be 2 or higher
number_of_layers = dataset.GetLayerCount()
Unfortunately a FeatureCollection with Features of different Geometry Types does not lead to the desired result.
A GeoJSON datasource is translated to single OGRLayer object
.