/** * Get the optional string value associated with an index. It returns an empty * string if there is no value at that index. If the value is not a string and * is not null, then it is coverted to a string. * * @param index The index must be between 0 and length() - 1. * @return A String value. */ public String optString(int index) { return optString(index, ""); }