Logo Search packages:      
Sourcecode: yui version File versions  Download package

Services_JSON::name_value ( name,

array-walking function for use in generating JSON-formatted name-value pairs

string $name name of key to use
mixed $value reference to an array element to be encoded
string JSON-formatted name-value pair, like '"name":value' private

Definition at line 436 of file JSON.php.

References encode(), and isError().

        $encoded_value = $this->encode($value);

        if(Services_JSON::isError($encoded_value)) {
            return $encoded_value;

        return $this->encode(strval($name)) . ':' . $encoded_value;

Generated by  Doxygen 1.6.0   Back to index