code: private <T> Object get(String key, Class<T> classT) {
          if (Checker.isNotEmpty(key)) {
              JSONObject object = jsonObject;
              // 拆分key
              String[] keys = key.split("\\.");
              String prefixKey = ".";
              key = pathToKey(key);
              if (jsonStore.containsKey(key)) {
                  object = jsonStore.get(key);
              } else {
                  for (int i = 0; i < keys.length; i++) {
                      String tempKey = keys[i];
                      prefixKey += tempKey + ".";
                      if (jsonStore.containsKey(tempKey)) {
                          object = jsonStore.get(tempKey);
                      } else if (i < keys.length - 1) {
                          if (tempKey.matches(".*\\[\\d+]$")) {
                              // 解析数组
                              JSONArray array = object.getJSONArray(tempKey.split("\\[")[0]);
                              String idx = tempKey.substring(tempKey.indexOf("[") + 1, tempKey.length() - 1);
                              object = array.getJSONObject(Formatter.stringToInt(idx));
                          } else {
                              object = object.getJSONObject(tempKey);
                          }
                          put(prefixKey, object);
                      } else {
                          key = keys[keys.length - 1];
                          if (key.matches(".*\\[\\d+]$")) {
                              int leftIdx = key.lastIndexOf("[");
                              JSONArray array = object.getJSONArray(key.substring(0, leftIdx));
                              int idx = Formatter.stringToInt(key.substring(leftIdx + 1, key.length() - 1));
                              return getObject(classT, null, array, String.valueOf(idx));
                          } else {
                              return getObject(classT, object, null, key);
                          }
                      }
                  }
              }
              return object;
          }
          return null;
      }
docs: 通过key解析JsonObject
  
  @param key 路径KEY
  @param classT {@link Class}
  @param <T> {@link T}
  
  @return {@link JSONObject}