/**
* 校验是否为JSON
*
* @param msg
* @return
*/
public static Boolean isJsonObject(String msg) {
try {
JSONObject.parseObject(msg);
} catch (Exception e) {
return false;
}
return true;
}
jsonデータかどうかを確認してください
おすすめ
転載: blog.csdn.net/weixin_43689953/article/details/111189933
おすすめ
ランキング