static JSONObject parseObject(URL url) {
        if (url == null) {
            return null;
        }

        try (InputStream is = url.openStream()) {
            return parseObject(is, StandardCharsets.UTF_8);
        } catch (IOException e) {
            throw new JSONException("JSON#parseObject cannot parse '" + url + "'", e);
        }
    }
Parses the json stream of the url as a {@link JSONObject}.
Returns {@code null} if received {@link URL} is {@code null}.

@param url the specified url to be parsed
@return {@link JSONObject} or {@code null}
@throws JSONException If an I/O error or parsing error occurs
@see URL#openStream()
@see JSON#parseObject(InputStream, Charset)
core/src/main/java/com/alibaba/fastjson2/JSON.java