public static boolean isValidJson ( Reader in ) throws IOException { try { new JSONParser ( DEFAULT_PERMISSIVE_MODE ) . parse ( in , FakeMapper . DEFAULT ) ; return true ; } catch ( ParseException e ) { return false ; } }
Check Json Syntax from input Reader