<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@contract-case/case-definition-dsl](./case-definition-dsl.md) &gt; [matchers](./case-definition-dsl.matchers.md) &gt; [strings](./case-definition-dsl.matchers.strings.md) &gt; [StringifiedJson](./case-definition-dsl.matchers.strings.stringifiedjson.md) &gt; [(constructor)](./case-definition-dsl.matchers.strings.stringifiedjson._constructor_.md)

## matchers.strings.StringifiedJson.(constructor)

Transformation matcher that matches a JSON.stringify()ed version of the given object.

For example, if the actual data is the string:

```ts
"{\"foo\":2}";
```

then you could match it with:

```ts
StringifiedJson({
  foo: 2,
});
```

or

```ts
StringifiedJson({
  foo: AnyNumber(2),
});
```

**Signature:**

```typescript
constructor(child: AnyMatcherOrData);
```

## Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

child

</td><td>

AnyMatcherOrData

</td><td>

The object or matcher that matches the decoded

</td></tr>
</tbody></table>
