diff --git a/lib/se/api.rb b/lib/se/api.rb index 5c7a7a1..cd41b5d 100644 --- a/lib/se/api.rb +++ b/lib/se/api.rb @@ -104,7 +104,7 @@ def json(uri, **params) @logger_json.info "https://api.stackexchange.com/#{API_VERSION}/#{uri}?#{params} => #{resp}" @quota = resp["quota_remaining"] @quota_used += 1 - resp["items"] + Array(resp["items"]) end end end