com.yance.utils.StringTioUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tio-http-server-spring-boot-starter Show documentation
Show all versions of tio-http-server-spring-boot-starter Show documentation
Tio Http 服务的 spring-boot-starter
The newest version!
package com.yance.utils;
import com.alibaba.fastjson.JSONObject;
/**
* @author yance
*/
public class StringTioUtil {
/**
* 判断是否为JSON字符串
*
* @param value 需要验证字符串
* @return 返回真或假 bool类型
*/
public static boolean isJsonString(String value) {
try {
JSONObject.parseObject(value);
return true;
} catch (Exception e) {
return false;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy