public String getString(int index) {
        Object value = list.get(index);
        if (value == null) {
            return null;
        }

        if (value instanceof String) {
            return (String) value;
        }

        if (value instanceof Date) {
            long timeMillis = ((Date) value).getTime();
            return DateUtils.toString(timeMillis, false, DateUtils.DEFAULT_ZONE_ID);
        }

        if (value instanceof Boolean
                || value instanceof Character
                || value instanceof Number
                || value instanceof UUID
                || value instanceof Enum
                || value instanceof TemporalAccessor) {
            return value.toString();
        }

        return com.alibaba.fastjson2.JSON.toJSONString(value);
    }
Returns a byte value at the specified location in this {@link com.alibaba.fastjson2.JSONArray}.

@param index index of the element to return
@return byte
@throws NumberFormatException If the value of get is {@link String} and it contains no parsable byte
@throws JSONException Unsupported type conversion to byte value
@throws IndexOutOfBoundsException if the index is out of range {@code (index < 0 || index >= size())}
fastjson1-compatible/src/main/java/com/alibaba/fastjson/JSONArray.java