---
lang: en
title: 'API docs: repository.model.tojson'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.model.tojson.html
---

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

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [Model](./repository.model.md) &gt; [toJSON](./repository.model.tojson.md)

## Model.toJSON() method

Serialize into a plain JSON object

<b>Signature:</b>

```typescript
toJSON(): Object;
```
<b>Returns:</b>

`Object`


