Mapping data can be array or object.