def test_to_json(self):
        json_str = self.g3.to_json()
        json_dict = json.loads(json_str)
        # TODO : verify the output is a valid GeoJSON.
Test whether GeoSeries.to_json works and returns an actual json file.
dataset/ETHPy150Open geopandas/geopandas/geopandas/tests/test_geoseries.py/TestSeries.test_to_json