# parseTopoJSON

Geo Map: decode TopoJSON without changing data. Returns null for other chart types or an unavailable child.

Canonical: https://chart.syidax.com/docs/methods/parseTopoJSON/

<a id="definition"></a>

## Definition

```typescript
parseTopoJSON(input: unknown, objectName?: string): Promise<GeoMapFeatureCollection | null>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `input` | `unknown` | Required |
| `objectName` | `string` | Optional |

Return type: `Promise<GeoMapFeatureCollection | null>`. Call the method after element registration and await its Promise result.

- [GeoMapFeatureCollection](https://chart.syidax.com/docs/types/GeoMapFeatureCollection.md) — Type definition

<a id="related"></a>

## Related charts

- [sy-geo-map](https://chart.syidax.com/docs/components/geo-map.md#method-parseTopoJSON)
