# createJsonLookup (@salmonui/data/lookup)

> The createJsonLookup function of @salmonui/data/lookup: Cached lookup over the JSON protocol endpoint: { v: 1, lookup: { name, keys, keyField, displayField } } -> { v: 1, rows }.

Canonical: https://salmonui.dev/docs/reference/data/lookup/createJsonLookup

```ts
import { createJsonLookup } from '@salmonui/data/lookup';
```

Also exported from `@salmonui/data`.

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

## Reference

Kind: function

```ts
function createJsonLookup(options: JsonLookupOptions): CachedLookup;
```

Cached lookup over the JSON protocol endpoint:
`{ v: 1, lookup: { name, keys, keyField, displayField } }` -> `{ v: 1, rows }`.
