json格式:{"alias":"xx","isDisplay":false,"comment":"xxxx"}
private boolean isjson(String string){
try {
JSONObject jsonStr= JSONObject.parseObject(string);
return true;
} catch (Exception e) {
return false;
}
}
json格式:{"alias":"xx","isDisplay":false,"comment":"xxxx"}
private boolean isjson(String string){
try {
JSONObject jsonStr= JSONObject.parseObject(string);
return true;
} catch (Exception e) {
return false;
}
}