class GraphInventoryPatchConverter {

    protected boolean hasComplexObject(String json) {
        if (json.isEmpty()) {
            return false;
        }
        String complex = "$.*.*";
        String array = "$.*.*.*";
        List<String> result = JsonPathUtil.getInstance().getPathList(json, complex);
        List<String> result2 = JsonPathUtil.getInstance().getPathList(json, array);

        result.addAll(result2);
        return result.stream().anyMatch(item -> LOCATE_COMPLEX_OBJECT.matcher(item).find());
    }

}