---
meta:
 - name: keywords
   description: api typescript node.js documentation CachedJsonMapper type
---
# CachedJsonMapper - @tsed/json-mapper

## Usage

```typescript
import { CachedJsonMapper } from "@tsed/specs/json-mapper/src/domain/JsonMapperCompiler";
```

> See [/packages/specs/json-mapper/src/domain/JsonMapperCompiler.ts](https://github.com/tsedio/tsed/blob/v8.27.0/packages/specs/json-mapper/src/domain/JsonMapperCompiler.ts#L0-L0).

## Overview

```ts
type CachedJsonMapper<Options> = {
    id: string;
    fn: JsonMapperCallback<Options>;
};
```

<!-- Description -->

## Description

Executable mapper plus its unique identifier stored in the compiler cache.

<!-- Members -->

## id

```ts
id: string;
```

## fn

```ts
fn: JsonMapperCallback<Options>;
```
