# yaymail/4.3.3/vendor/10quality/php-data-model/src/Contracts/JSONable.php

YayMail – WooCommerce Email Customizer, version 4.3.3. 25 lines.

- Page: https://pluginprobe.com/plugins/yaymail/4.3.3/code/vendor/10quality/php-data-model/src/Contracts/JSONable.php
- Raw: https://pluginprobe.com/plugins/yaymail/4.3.3/raw/vendor/10quality/php-data-model/src/Contracts/JSONable.php
- Modified: 2026-02-12T15:49:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yaymail/4.3.3/code/vendor/10quality/php-data-model/src/Contracts/JSONable.php#L10-L20`.

```php
<?php

namespace TenQuality\Data\Contracts;

/**
 * Interface for any object that can be casted to JSON.
 *
 * @author Cami M <info@10quality.com>
 * @copyright 10 Quality <info@10quality.com>
 * @package TenQuality\Data\Model
 * @version 1.0.2
 */
interface JSONable
{
    /**
     * Returns object as JSON string.
     * @since 1.0.2
     */
    public function __toJSON($options = 0, $depth = 512);
    /**
     * Returns object as JSON string.
     * @since 1.0.2
     */
    public function toJSON($options = 0, $depth = 512);
}
```
