I have 2 shapefiles in QGIS (
one point layer and
one Line layer as shown in Figure). I am trying to save these two layers in one GeoJSON. I have seen some of the previous answers such as answer  , answer  but they are merging the files into one with UNION functions.
- My goal is not to merge the features but to save the two layers in one GeoJSON file. For instance, when I import the GeoJSON file to QGIS it should show the point and line layer seperately as show in Figure.
- I used
Export Features As / GeoJSONbut it only save 1 layer.