protected void syntaxError(final String message) {
		String left = "...";
		String right = "...";
		int offset = 10;

		int from = ndx - offset;
		if (from < 0) {
			from = 0;
			left = StringPool.EMPTY;
		}

		int to = ndx + offset;
		if (to > input.length) {
			to = input.length;
			right = StringPool.EMPTY;
		}

		final CharSequence str = CharArraySequence.of(input, from, to - from);

		throw new JsonException(
				"Syntax error! " + message + "\n" +
				"offset: " + ndx + " near: \"" + left + str + right + "\"");
	}
protected void syntaxError(final String message) {
		String left = "...";
		String right = "...";
		int offset = 10;

		int from = ndx - offset;
		if (from < 0) {
			from = 0;
			left = StringPool.EMPTY;
		}

		int to = ndx + offset;
		if (to > input.length) {
			to = input.length;
			right = StringPool.EMPTY;
		}

		final CharSequence str = CharArraySequence.of(input, from, to - from);

		throw new JsonException(
				"Syntax error! " + message + "\n" +
				"offset: " + ndx + " near: \"" + left + str + right + "\"");
	}
protected void syntaxError ( final String message ) { String left = "..." ; String right = "..." ; int offset = 10 ; int from = ndx - offset ; if ( from < 0 ) { from = 0 ; left = StringPool . EMPTY ; } int to = ndx + offset ; if ( to > input . length ) { to = input . length ; right = StringPool . EMPTY ; } final CharSequence str = CharArraySequence . of ( input , from , to - from ) ; throw new JsonException ( "Syntax error! " + message + "\n" + "offset: " + ndx + " near: \"" + left + str + right + "\"" ) ; }
Throws {@link jodd.json.JsonException} indicating a syntax error.
Throws {