---
url: /api/core/types/utils/function-has-json-method.md
description: api documentation of hasJsonMethod from @tsed/core
---

## Usage

```typescript
import { hasJsonMethod } from "@tsed/core";
```

> See [/packages/core/src/utils/hasJsonMethod.ts](https://github.com/tsedio/tsed/blob/v8.37.1/packages/core/src/utils/hasJsonMethod.ts#L0-L0).

## Overview

```ts
function hasJsonMethod(obj: any): any;
```

## Description

Checks whether an object has a toJSON method.
