| Loader | Characteristic |
| --- | --- |
| File Extension | `.json`, `.geojson`, `.ndjson` |
| MIME type | `application/geo+json` |
| File Format | [GeoJSON](https://geojson.org/), [NDGeoJSON](https://stevage.github.io/ndgeojson) |

The Studio Platform accepts [GeoJSON files](https://geojson.org/) that contain either

- a [FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3) object
- an array of [Feature](https://tools.ietf.org/html/rfc7946#section-3.2) objects
- a single [Feature](https://tools.ietf.org/html/rfc7946#section-3.2) object

Newline-delimited GeoJSON files can also be loaded. A newline-delimited GeoJSON file contains
one GeoJSON feature per line. New-line delimited files need to be named with the `.ndjson` extension.

For more detail see [NDJSON](https://docs.foursquare.com/analytics-products/docs/data-formats-json).

### Example: GeoJSON Feature Collection.

```json
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [102.0, 0.5]
      },
      "properties": {
        "prop0": "value0"
      }
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "LineString",
        "coordinates": [
          [102.0, 0.0],
          [103.0, 1.0],
          [104.0, 0.0],
          [105.0, 1.0]
        ]
      },
      "properties": {
        "prop0": "value0"
      }
    }
  ]
}
```

### Example: GeoJSON Feature Array.

```json
[
  {
    "type": "Feature",
    "geometry": {
      "type": "Point",
      "coordinates": [102.0, 0.5]
    },
    "properties": {
      "prop0": "value0"
    }
  },
  {
    "type": "Feature",
    "geometry": {
      "type": "LineString",
      "coordinates": [
        [102.0, 0.0],
        [103.0, 1.0],
        [104.0, 0.0],
        [105.0, 1.0]
      ]
    },
    "properties": {
      "prop0": "value0"
    }
  }
]
```

### Example: A single GeoJSON Feature:

```json
{
  "type": "Feature",
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [-10.0, -10.0],
        [10.0, -10.0],
        [10.0, 10.0],
        [-10.0, -10.0]
      ]
    ]
  },
  "properties": {
    "name": "foo"
  }
}
```

### Example: New-line Delimited GeoJSON

```json
{"type": "Feature", "geometry": {"type": "Point", "coordinates": [102.0, 0.5]}, "properties": {"prop0": "value0"}}
{"type": "Feature", "geometry": {"type": "LineString", "coordinates": [[102.0, 0.0], [103.0, 1.0], [104.0, 0.0], [105.0, 1.0]]}, "properties": {"prop0": "value0"}}
```
