java判断string字符串是不是json格式
时间:2018-06-08 15:56:37
收藏:0
阅读:1262
public static boolean isJson(String content) {
try {
JSONObject.fromObject(content);
return true;
} catch (Exception e) {
return false;
}
}
评论(0)