support WriteObjectAsArray

update