Code (Java):. public static boolean isValidJson(String json) { try { return new JsonParser().parse(json).asJsonObject() != null; } ...
確定! 回上一頁