@Override
	public void write(Object target, ByteModel model) {
		Class<?> targetClass = target.getClass();
		int dimensions = XsonTypeUtils.getArrayDimensions(targetClass);
		Class<?> componentType = XsonTypeUtils.getComponentType(targetClass);
		Object[] array = (Object[]) target;
		int length = array.length;
		model.appendCreateArray(componentType, dimensions, length);
		for (int i = 0; i < length; i++) {
			model.writeObject(array[i]);
		}
	}