XML, JSON to array converter