Source for file json.php
Documentation is available at json.php
* @package Joomla.Platform
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* JSON format handler for JRegistry.
* @package Joomla.Platform
* Converts an object into a JSON formatted string.
* @param object $object Data source object.
* @param array $options Options used by the formatter.
* @return string JSON formatted string.
* Parse a JSON formatted string and convert it into an object.
* If the string is not in JSON format, this method will attempt to parse it as INI format.
* @param string $data JSON formatted string to convert.
* @param array $options Options used by the formatter.
* @return object Data object.
public function stringToObject($data, array $options =
array('processSections' =>
false))
if ((substr($data, 0, 1) !=
'{') &&
(substr($data, -
1, 1) !=
'}'))
$obj =
$ini->stringToObject($data, $options);
Documentation generated on Tue, 19 Nov 2013 15:06:17 +0100 by phpDocumentor 1.4.3