MadelineProtoDocs/docs/API_docs/constructors/dataJSON.md
2019-12-27 17:48:04 +01:00

39 lines
641 B
Markdown

---
title: dataJSON
description: Represents a json-encoded object
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: dataJSON
[Back to constructors index](index.md)
Represents a json-encoded object
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|data|[string](../types/string.md) | Yes|JSON-encoded object|
### Type: [DataJSON](../types/DataJSON.md)
### Example:
```php
$dataJSON = ['_' => 'dataJSON', 'data' => 'string'];
```
Or, if you're into Lua:
```lua
dataJSON={_='dataJSON', data='string'}
```