private Map<String, String> fromJsonToMap(String jsonString) {
        Map<String, String> mapObj = new HashMap<>();
        if (StringUtils.isBlank(jsonString)) {
            return mapObj;
        }
        try {
            JsonObject obj = GSON.fromJson(jsonString, JsonObject.class);
            for (String key : obj.keySet()) {
                JsonElement child = obj.get(key);
                if (child.isJsonPrimitive()) {
                    mapObj.put(key, child.getAsString());
                } else if (!child.isJsonNull()) {
                    mapObj.put(key, child.toString());
                }
            }
        } catch (Exception e) {
            LOGGER.error("parse json string to map error", e);
        }

        // to be compatible with multi-tenancy #7914
        String tenant = mapObj.get(KEY_NEW_TENANT_KEY);
        mapObj.remove(KEY_NEW_TENANT_KEY);
        mapObj.put(KEY_OLD_TENANT_KEY, tenant);

        return mapObj;
    }
Parse Json string to Java Map
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/repository/DataProxyConfigRepository.java