normalizePayload in extractArray and extractSingle