src/main/java/com/zy/common/web/BaseController.java
@@ -142,4 +142,15 @@ wrapper.like(columns.get(i), condition); } } public static boolean isJSON(String str) { if (Cools.isEmpty(str)) { return true; } else { str = str.trim(); if (str.startsWith("{") && str.endsWith("}")) { return false; } else return !str.startsWith("[") || !str.endsWith("]"); } } }