deserializeArray functionality