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

@return if the input is valid