code: public char next() throws JSONException {
          if (this.useLastChar) {
          	this.useLastChar = false;
              if (this.lastChar != 0) {
              	this.index += 1;
              }
              return this.lastChar;
          } 
          int c;
          try {
              c = this.reader.read();
          } catch (IOException exc) {
              throw new JSONException(exc);
          }
  
          if (c <= 0) { // End of stream
          	this.lastChar = 0;
              return 0;
          } 
      	this.index += 1;
      	this.lastChar = (char) c;
          return this.lastChar;
      }
docs: Get the next character in the source string.
  
  @return The next character, or 0 if past the end of the source string.