# Type alias JsonFunction

JsonFunction: (<Data>(data, init?) => Response)

#### Type declaration

- - <Data>(data, init?): Response

  - #### Type Parameters

    - Data

    #### Parameters

    - data: Data
    - `Optional` init: number | ResponseInit

    #### Returns Response

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/utils.d.ts:447