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

## Usage

```typescript
import { JsonMapperGlobalOptions } from "@tsed/json-mapper";
```

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

## Overview

```ts
interface JsonMapperGlobalOptions {
    additionalProperties?: boolean;
    disableUnsecureConstructor?: boolean;
    strictGroups?: boolean;
}
```

<!-- Description -->

## Description

Shared configuration flags used by both serialization and deserialization flows.

<!-- Members -->

## additionalProperties

```ts
additionalProperties?: boolean;
```

JsonMapper additional property policy. (see [JsonMapper](/docs/json-mapper.md))

## disableUnsecureConstructor

```ts
disableUnsecureConstructor?: boolean;
```

Disable the unsecure constructor injection when the deserialize function is used (by default: false)

## strictGroups

```ts
strictGroups?: boolean;
```

Enable strict Groups configuration when the `options.groups` is undefined. (by default: false)
