Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
JSONManager Class Reference

Public Member Functions

 _getJsonServices ()
 
 decode ($json)
 
 encode ($value=false)
 
 JSONManager ()
 

Detailed Description

Class to build and manipulate JSON (Javascript Object Notation) objects.

Definition at line 18 of file JSONManager.inc.php.

Member Function Documentation

JSONManager::_getJsonServices ( )

Private function to get the JSON services library

Definition at line 57 of file JSONManager.inc.php.

Referenced by decode(), and encode().

JSONManager::decode (   $json)

Decode a JSON string.

Parameters
$jsonstring The content to decode.
Returns
mixed

Definition at line 45 of file JSONManager.inc.php.

References _getJsonServices().

JSONManager::encode (   $value = false)

PHP4 compatible version of json_encode()

Parameters
$valuemixed The content to encode.
Returns
string The encoded content.

Definition at line 31 of file JSONManager.inc.php.

References _getJsonServices().

JSONManager::JSONManager ( )

Constructor.

Definition at line 22 of file JSONManager.inc.php.


The documentation for this class was generated from the following file: