public char skipTo(char to) throws JSONException {

        char c;
        try {
            int startIndex = m_index;
            m_reader.mark(Integer.MAX_VALUE);
            do {
                c = next();
                if (c == 0) {
                    m_reader.reset();
                    m_index = startIndex;
                    return c;
                }
            } while (c != to);
        } catch (IOException exc) {
            throw new JSONException(exc);
        }

        back();
        return c;
    }
public char skipTo ( char to ) throws JSONException { char c ; try { int startIndex = m_index ; m_reader . mark ( Integer . MAX_VALUE ) ; do { c = next ( ) ; if ( c == 0 ) { m_reader . reset ( ) ; m_index = startIndex ; return c ; } } while ( c != to ) ; } catch ( IOException exc ) { throw new JSONException ( exc ) ; } back ( ) ; return c ; }
Skip characters until the next character is the requested character.
If the requested character is not found, no characters are skipped.<p>

@param to a character to skip to
@return the requested character, or zero if the requested character
is not found
@throws JSONException if something goes wrong