public static boolean isJson(String content) {
try {
JSONObject.fromObject(content);
return true;
} catch (Exception e) {
return false;
}
}
java 判断字符串是否为json格式
猜你喜欢
转载自blog.csdn.net/keep12moving/article/details/84937982
今日推荐
周排行