Use  method instead of map to get array of key/value pairs