code: public String next(int length) throws JSONException {
          if (pos + length > in.length()) {
              throw syntaxError(length + " is out of bounds");
          }
          String result = in.substring(pos, pos + length);
          pos += length;
          return result;
      }
docs: Returns the next {@code length} characters of the input.
  
  <p>The returned string shares its backing character array with this
  tokener's input string. If a reference to the returned string may be held
  indefinitely, you should use {@code new String(result)} to copy it first
  to avoid memory leaks.
  
  @throws JSONException if the remaining input is not long enough to
  satisfy this request.