@SuppressWarnings("unchecked")
    public JSONResult getJSONResult() {
        if (jsonObject == null) {
            try {
                jsonObject = new JSONResult();
                Object parsed = new JSONParser().parse(content);

                if (parsed instanceof JSONArray) {
                    JSONArray arr = (JSONArray) parsed;
                    HashMap<String, Object> newMap = new HashMap<String, Object>();
                    
                    Integer i = 0;
                    for( Object obj : arr ) {
                        newMap.put(i.toString(), obj);
                        i++;
                    }
                    jsonObject.setBase(newMap);
                } else if (parsed instanceof JSONObject) {
                    jsonObject.setBase((Map<String, Object>) parsed);
                } else {
                    jsonObject = null;
                }

            } catch (ParseException ex) {
                throw new ParserException("Could not parse JSON object (" + ex.getMessage() + ")");
            }
        }
        return jsonObject;
    }