java判断string字符串是不是json格式
时间:2018-06-08 15:14:23
收藏:0
阅读:948
public static boolean isJson(String content) {
try {
JSONObject.fromObject(content);
return true;
} catch (Exception e) {
return false;
}
}
原文:https://www.cnblogs.com/f-l-y/p/9155711.html
评论(0)