1 <?php
2 /**
3 * Part of the Joomla Framework Compat Package
4 *
5 * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
6 * @license GNU General Public License version 2 or later; see LICENSE
7 */
8
9 /**
10 * JsonSerializable interface. This file provides backwards compatibility to PHP 5.3 and ensures
11 * the interface is present in systems where JSON related code was removed.
12 *
13 * @link http://www.php.net/manual/en/jsonserializable.jsonserialize.php
14 * @since 1.0
15 */
16 interface JsonSerializable
17 {
18 /**
19 * Return data which should be serialized by json_encode().
20 *
21 * @return mixed
22 *
23 * @since 1.0
24 */
25 public function jsonSerialize();
26 }
27