protected function doHttpsPostReturnJSONArray($hostname, $path, $fields)
    {
        $result = $this->doHttpsPost($hostname, $path, $fields);

        if ($result) {
            $result = json_decode($result);
        } else {
            error_log("AYAH::doHttpsPostGetJSON: Post to https://$hostname$path returned no result.");
            $result = array();
        }

        return $result;
    }
protected function doHttpsPostReturnJSONArray($hostname, $path, $fields)
    {
        $result = $this->doHttpsPost($hostname, $path, $fields);

        if ($result) {
            $result = json_decode($result);
        } else {
            error_log("AYAH::doHttpsPostGetJSON: Post to https://$hostname$path returned no result.");
            $result = array();
        }

        return $result;
    }
protected function doHttpsPostReturnJSONArray ( $ hostname , $ path , $ fields ) { $ result = $ this -> doHttpsPost ( $ hostname , $ path , $ fields ) ; if ( $ result ) { $ result = json_decode ( $ result ) ; } else { error_log ( "AYAH::doHttpsPostGetJSON: Post to https://$hostname$path returned no result." ) ; $ result = array ( ) ; } return $ result ; }
Do an HTTPS POST, return some JSON decoded as array.
@param $hostname hostname
@param $path path
@param $fields associative array of fields
@return array|mixed Decoded json structure or empty data structure
Do an HTTPS POST return some JSON decoded as array .