phpQuery::getJSON PHP Méthode

getJSON() public static méthode

public static getJSON ( $url, $data = null, $callback = null )
    public static function getJSON($url, $data = null, $callback = null)
    {
        if (!is_array($data)) {
            $callback = $data;
            $data = null;
        }
        // TODO some array_values on this shit
        return self::ajax(array('type' => 'GET', 'url' => $url, 'data' => $data, 'success' => $callback, 'dataType' => 'json'));
    }

Usage Example

 private function parseWechatContents($uri)
 {
     echo "\r\n StartDetailArticls==>" . $uri . "\r\n";
     $option = array('username' => 'x', 'password' => 'x', 'dataType' => 'jsonp', 'openid' => 'oIWsFtw_7gB_cuYwH0Uwoamx0lMI', 'ext' => '_L45N5QlA_VVl_aoTx3tUFypb98KD5t9cdays8xKDEERpb8tj-663w3PuCc0GvTx');
     phpQuery::getJSON($option, 'gzh');
     die;
 }