---
title: data
framework: mapkitjs
role: symbol
role_heading: Instance Property
path: mapkitjs/itemcollection/data
---

# data

The raw GeoJSON data.

## Declaration

```data
get data(): D | null;
set data(data: D | null);
```

## Discussion

Discussion Use the data object to view the original GeoJSON data. To retrieve the data as MapKit JS items, use the items or getFlattenedItemList() objects.

## See Also

### Item collection properties

- [getFlattenedItemList()](mapkitjs/itemcollection/getflatteneditemlist.md)
- [items](mapkitjs/itemcollection/items.md)
