code: private void init(Object object) throws JSONException{
  		if (object instanceof CharSequence) {
  			// JSON字符串
  			init((CharSequence) object);
  		} else {
  			Iterator<?> iter;
  			if (object.getClass().isArray()) {// 数组
  				iter = new ArrayIter<>(object);
  			} else if (object instanceof Iterator<?>) {// Iterator
  				iter = ((Iterator<?>) object);
  			} else if (object instanceof Iterable<?>) {// Iterable
  				iter = ((Iterable<?>) object).iterator();
  			} else {
  				throw new JSONException("JSONArray initial value should be a string or collection or array.");
  			}
  			while (iter.hasNext()) {
  				this.add(iter.next());
  			}
  		}
  	}
docs: 初始化
  
  @param object 数组或集合或JSON数组字符串
  @throws JSONException 非数组或集合