How to check whether a given string is valid JSON in Java. public boolean isJSONValid(String test) { try { new JSONObject(test); } catch (JSONException ex) ...
確定! 回上一頁