<!-- 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; [interactions](./case-definition-dsl.interactions.md) &gt; [base](./case-definition-dsl.interactions.base.md) &gt; [AnyInteractionDescriptor](./case-definition-dsl.interactions.base.anyinteractiondescriptor.md) &gt; [stringify](./case-definition-dsl.interactions.base.anyinteractiondescriptor.stringify.md)

## interactions.base.AnyInteractionDescriptor.stringify() method

This method returns the entire example as a JSON string, as a convenience so that wrapper libraries don't need to figure out how to walk a tree of example objects.

You shouldn't need to override this method.

**Signature:**

```typescript
stringify(): string;
```

**Returns:**

string

A JSON string representation of this mock.
