# fieldIndex (@salmonui/data/json)

> The fieldIndex function of @salmonui/data/json: Index of each field in the tuple header.

Canonical: https://salmonui.dev/docs/reference/data/json/fieldIndex

```ts
import { fieldIndex } from '@salmonui/data/json';
```

Also exported from `@salmonui/data`.

Entry index: https://salmonui.dev/docs/reference/data/json (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data/json.md).

## Reference

Kind: function

```ts
function fieldIndex(fields: readonly string[]): ReadonlyMap<string, number>;
```

Index of each field in the tuple header.
