function decodeJSON($json)
    {
        $json_response = json_decode($json);
        if ($json_response === null) {
            throw new Clientside\Exception("Unable to decode JSON response from: {$json}");
        }
        return $json_response;
    }
function decodeJSON($json)
    {
        $json_response = json_decode($json);
        if ($json_response === null) {
            throw new Clientside\Exception("Unable to decode JSON response from: {$json}");
        }
        return $json_response;
    }
function decodeJSON ( $ json ) { $ json_response = json_decode ( $ json ) ; if ( $ json_response === null ) { throw new Clientside \ Exception ( "Unable to decode JSON response from: {$json}" ) ; } return $ json_response ; }
decode json throwing exception if unable
decode json throwing exception if unable