Class Gollem_Serialize_JSON

Description

Converts to and from JSON format.

Located in /lib/JSON.php (line 78)


	
			
Method Summary
 void decode ( $var)
 void encode ( $var)
 mixed _decode (string $str)
 string _encode (mixed $var)
Methods
decode (line 187)

Added to Gollem's json.php to use json_decode() if available.

void decode ( $var)
  • $var
encode (line 83)

Added to Gollem's json.php to use json_encode() if available.

void encode ( $var)
  • $var
_decode (line 206)

Decodes a JSON string into appropriate variable.

  • return: Number, boolean, string, array, or object corresponding to given JSON input string. Note that decode() always returns strings in ASCII or UTF-8 format.
mixed _decode (string $str)
  • string $str: JSON-formatted string.
_encode (line 101)

Encodes an arbitrary variable into JSON format.

  • return: JSON string representation of input var.
string _encode (mixed $var)
  • mixed $var: Any number, boolean, string, array, or object to be encoded.

Documentation generated on Sun, 30 Jan 2011 05:24:45 +0000 by phpDocumentor 1.4.3