src/main/java/com/zy/asrs/utils/Utils.java
@@ -1,5 +1,7 @@ package com.zy.asrs.utils; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.core.common.Arith; import com.core.common.Cools; @@ -293,4 +295,16 @@ return recentLocNo; } public static boolean isJSON(String value) { try { JSONObject jsonData = JSON.parseObject(value); if (jsonData == null) { return false; } return true; } catch (Exception e) { return false; } } }