# to_json
`toloka.client.primitives.base.BaseTolokaObject.to_json` | [Source code](https://github.com/Toloka/toloka-kit/blob/v0.1.26/src/client/primitives/base.py#L288)

```python
to_json(self, pretty: bool = False)
```

