# WireReadResponse (@salmonui/data/json)

> The WireReadResponse interface of @salmonui/data/json.

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

```ts
import type { WireReadResponse } 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: interface

```ts
interface WireReadResponse {
    readonly v: 1;
    readonly id: string;
    readonly fields: readonly string[];
    readonly types?: readonly WireType[];
    readonly rows: readonly WireTuple[];
    readonly dict?: Readonly<Record<string, readonly string[]>>;
    readonly total?: number;
    readonly next?: string | null;
    readonly prev?: string | null;
    readonly aggregates?: Readonly<Record<string, Readonly<Record<string, unknown>>>>;
    readonly groups?: readonly WireGroup[];
    readonly childCounts?: readonly number[];
    readonly parents?: readonly Json[];
    readonly depths?: readonly number[];
    readonly facet?: {
        readonly field: string;
        readonly entries: readonly (readonly [
            key: string,
            label: string,
            count: number
        ])[];
        readonly complete: boolean;
    };
    readonly error?: WireError;
}
```

Members (16):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `v` | `readonly v: 1;` |  |  |
| `id` | `readonly id: string;` |  |  |
| `fields` | `readonly fields: readonly string[];` |  |  |
| `types` | `readonly types?: readonly WireType[];` | optional |  |
| `rows` | `readonly rows: readonly WireTuple[];` |  |  |
| `dict` | `readonly dict?: Readonly<Record<string, readonly string[]>>;` | optional | Dictionary encoding: that field's cells are indexes into the list. |
| `total` | `readonly total?: number;` | optional |  |
| `next` | `readonly next?: string \| null;` | optional | Cursor of the next page; null on the last page. |
| `prev` | `readonly prev?: string \| null;` | optional |  |
| `aggregates` | `readonly aggregates?: Readonly<Record<string, Readonly<Record<string, unknown>>>>;` | optional |  |
| `groups` | `readonly groups?: readonly WireGroup[];` | optional | Group level of a lazy group load (instead of rows). |
| `childCounts` | `readonly childCounts?: readonly number[];` | optional | Tree loads: child count per row (0 = leaf), parallel to `rows`; filtered reads count the kept children only. |
| `parents` | `readonly parents?: readonly Json[];` | optional | Tree loads that return more than one level (a filtered read with the ancestor chain, or a whole subtree): the parent key per row (null: a root), parallel to `rows`, in pre-order. Omitted: every row is a child of the requested `parent`. |
| `depths` | `readonly depths?: readonly number[];` | optional | Depth per row relative to the requested level (0: a child of `parent`), parallel to `rows`. |
| `facet` | `readonly facet?: {     readonly field: string;     readonly entries: readonly (readonly [         key: string,         label: string,         count: number     ])[];     readonly complete: boolean; };` | optional |  |
| `error` | `readonly error?: WireError;` | optional |  |
