lib/SteamCondenser/Community/WebApi.php
public static function getJSONData($interface, $method, $version = 1, $params = null) {
        $result = self::getJSONObject($interface, $method, $version, $params)->result;

        if($result->status != 1) {
            throw new WebApiException(WebApiException::STATUS_BAD, $result->status, $result->statusDetail);
        }

        return $result;
    }
public static function getJSONData($interface, $method, $version = 1, $params = null) {
        $result = self::getJSONObject($interface, $method, $version, $params)->result;

        if($result->status != 1) {
            throw new WebApiException(WebApiException::STATUS_BAD, $result->status, $result->statusDetail);
        }

        return $result;
    }
Fetches JSON data from Steam Web API using the specified interface,
method and version. Additional parameters are supplied via HTTP GET.

This will also check for some common error codes that are provided by
some Web API interface methods.

@param string $interface The Web API interface to call, e.g. ISteamUser
@param string $method The Web API method to call, e.g.
GetPlayerSummaries
@param int $version The API method version to use
@param array $params Additional parameters to supply via HTTP GET
@return \stdClass Data is returned as a json_decoded object
@throws WebApiException In case of any request failure