code: long string2Long(CharSequence cs, int readed) {
  		if (cs.length() > 16) {
  			throw new JsonParseException("Number string is too long.", readed);
  		}
  		long n = 0;
  		for (int i = 0; i < cs.length(); i++) {
  			n = n * 10 + (cs.charAt(i) - '0');
  			if (n > MAX_SAFE_INTEGER) {
  				throw new JsonParseException("Exceeded maximum value: "
  						+ MAX_SAFE_INTEGER, readed);
  			}
  		}
  		return n;
  	}
docs: parse "0123" as 123: