src/main/java/org/a05annex/util/JsonSupport.java
@NotNull
    static public JSONArray readJsonFileAsJSONArray(@NotNull String filename) throws
            IOException, ParseException {
        JSONParser jsonParser = new JSONParser();
        FileReader reader = new FileReader(filename);
        //Read JSON file
        Object obj = jsonParser.parse(reader);
        return (JSONArray) obj;
    }
/**
     * Read a file into a {@link JSONArray}.
     *
     * @param filename The filename.
     * @return The {@link JSONArray} read from the file.
     * @throws FileNotFoundException if the named file does not exist,
     *                               is a directory rather than a regular file,
     *                               or for some other reason cannot be opened for
     * @throws IOException           Error reading from the file.
     * @throws ParseException        JSON format error in the file contents.
     * @throws ClassCastException    The contents of the JSON file is not an array.
     */
Read a file into a  JSONArray.
@param filename The filename.
@return The  JSONArray read from the file.
@throws FileNotFoundException if the named file does not exist,
is a directory rather than a regular file,
or for some other reason cannot be opened for
@throws IOException           Error reading from the file.
@throws ParseException        JSON format error in the file contents.
@throws ClassCastException    The contents of the JSON file is not an array.
Read a file into a JSONArray . @param filename The filename . @return The JSONArray read from the file . @throws FileNotFoundException if the named file does not exist is a directory rather than a regular file or for some other reason cannot be opened for @throws IOException Error reading from the file . @throws ParseException JSON format error in the file contents . @throws ClassCastException The contents of the JSON file is not an array .
@NotNull
    static public JSONArray readJsonFileAsJSONArray(@NotNull String filename) throws
            IOException, ParseException {
        JSONParser jsonParser = new JSONParser();
        FileReader reader = new FileReader(filename);
        Object obj = jsonParser.parse(reader);
        return (JSONArray) obj;
    }
@ NotNull static public JSONArray readJsonFileAsJSONArray ( @ NotNull String filename ) throws IOException , ParseException { JSONParser jsonParser = new JSONParser ( ) ; FileReader reader = new FileReader ( filename ) ; Object obj = jsonParser . parse ( reader ) ; return ( JSONArray ) obj ; }
Read a file into a {@link JSONArray}.
Read a file into a { @link JSONArray } .
//Read JSON file