src/main/java/RulesEngineModel/RulesEngine.java
private static JSONArray parseJSONFile() {

        String content = null;

        try {
            content = new String(Files.readAllBytes(Paths.get(filePath)));
        } catch (IOException e) {
            e.printStackTrace();
        }

        return new JSONArray(content);
    }
//Get JSONArray from JSON file in resources (productRules.json)
Get JSONArray from JSON file in resources (productRules.json)
Get JSONArray from JSON file in resources ( productRules . json )
private static JSONArray parseJSONFile() {
        String content = null;
        try {
            content = new String(Files.readAllBytes(Paths.get(filePath)));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return new JSONArray(content);
    }
private static JSONArray parseJSONFile ( ) { String content = null ; try { content = new String ( Files . readAllBytes ( Paths . get ( filePath ) ) ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } return new JSONArray ( content ) ; }
Get JSONArray from JSON file in resources (productRules.json)
Get JSONArray from JSON file in resources ( productRules . json )