INNER CODE UNIT · Java

parseObject

alibaba/fastjson2 · core/src/main/java/com/alibaba/fastjson2/JSON.java:819

    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 byte array as a {@link JSONObject}. Returns {@code null}
     * if received byte array is {@code null} or empty or its content is null.
     *
     * @param bytes the specified UTF8 text to be parsed
     * @param features the specified features is applied to parsing

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…