public static boolean isJson(String content) { try { JSONObject.fromObject(content); return true; } catch (Exception e) { return false; } }