src/xPDO/xPDO.php
public function fromJSON($src, $asArray= true) {
        $decoded= '';
        if ($src) {
            if (!function_exists('json_decode')) {
                throw new xPDOException();
            } else {
                $decoded= json_decode($src, $asArray);
            }
        }
        return $decoded;
    }
public function fromJSON($src, $asArray= true) {
        $decoded= '';
        if ($src) {
            if (!function_exists('json_decode')) {
                throw new xPDOException();
            } else {
                $decoded= json_decode($src, $asArray);
            }
        }
        return $decoded;
    }
public function fromJSON ( $ src , $ asArray = true ) { $ decoded = '' ; if ( $ src ) { if ( ! function_exists ( 'json_decode' ) ) { throw new xPDOException ( ) ; } else { $ decoded = json_decode ( $ src , $ asArray ) ; } } return $ decoded ; }
Converts a JSON source string into an equivalent PHP representation.

@param string $src A JSON source string.
@param boolean $asArray Indicates if the result should treat objects as
associative arrays; since all JSON associative arrays are objects, the default
is true.  Set to false to have JSON objects returned as PHP objects.

@throws xPDOException If json_decode is not available.
@return mixed The PHP representation of the JSON source.
Converts a JSON source string into an equivalent PHP representation .