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