Source for file jsonserializable.php

Documentation is available at jsonserializable.php

  1. <?php
  2. /**
  3.  * @package    Joomla.Compat
  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. defined('JPATH_PLATFORM'or die;
  10.  
  11. /**
  12.  * JsonSerializable interface. This file should only be loaded on PHP < 5.4
  13.  * It allows us to implement it in classes without requiring PHP 5.4
  14.  *
  15.  * @package  Joomla.Compat
  16.  * @link     http://www.php.net/manual/en/jsonserializable.jsonserialize.php
  17.  * @since    12.2
  18.  */
  19. interface JsonSerializable
  20. {
  21.     /**
  22.      * Return data which should be serialized by json_encode().
  23.      *
  24.      * @return  mixed 
  25.      *
  26.      * @since   12.2
  27.      */
  28.     public function jsonSerialize();
  29. }

Documentation generated on Tue, 19 Nov 2013 15:06:19 +0100 by phpDocumentor 1.4.3