title: React-Admin The response to 'getList' must be like { data : [...] }, but the received data is not an array
body: <p>I use jsonServerProvider But I can not get my express Api data</p>
  <p><strong>error code</strong></p>
  <pre><code>The response to 'getList' must be like { data : [...] }, but the received data is not an array. The dataProvider is probably wrong for 'getList'
  </code></pre>
  <p><strong>My React-Admin ./dataProvider...</strong></p>
  <pre><code>import jsonServerProvider from &quot;ra-data-json-server&quot;;
  import {fetchUtils} from &quot;react-admin&quot;
  import axios from 'axios'
  
  const fetchJson = (url, options = {}) =&gt; {
    if (!options.headers) {
        options.headers = new Headers({ Accept: 'application/json' });
    }
    // add your own headers here
    options.headers.set('X-Custom-Header', 'foobar');
    options.headers.set('withCredentials', true);
    axios.defaults.withCredentials = true;
    return fetchUtils.fetchJson(url, options);
  }
  
  const dataProvider = jsonServerProvider(&quot;http://localhost:5000/periodical/api&quot;,fetchJson);
  
  export default dataProvider; 
  </code></pre>
  <p><a href="https://i.stack.imgur.com/doMKN.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p><strong>My categoryList...</strong></p>
  <pre><code>import * as React from &quot;react&quot;;
  import {
    List,
    Datagrid,
    TextField,
    EditButton,
    Create,
    Edit,
    SimpleForm,
    SelectInput,
    TextInput,
    DeleteButton,
  } from &quot;react-admin&quot;;
  
  
  const CategorysTitle = ({ record }) =&gt; {
    return &lt;span&gt;Post {record ? `&quot;${record.title}&quot;` : &quot;&quot;}&lt;/span&gt;;
  };
  
  export const CategorysList = (props) =&gt; (
    &lt;List {...props}&gt;
      &lt;Datagrid&gt;
        &lt;TextField source=&quot;id&quot; /&gt;
        &lt;TextField source=&quot;name&quot; /&gt;
        &lt;EditButton /&gt;
        &lt;DeleteButton /&gt;
      &lt;/Datagrid&gt;
    &lt;/List&gt;
  );
  </code></pre>
  <p><strong>My NodeJS express...</strong></p>
  <pre><code>router.route('/').get(async (req, res) =&gt; {
      try {
          const data = await CATEGORY.get();
          res.set('Access-Control-Expose-Headers', 'X-Total-Count')
          res.set('X-Total-Count', data)
          console.log(data);
          return res.status(200).json({ data });
      } catch (error) {
          return res.status(500).json({ error });
      }
  });
  </code></pre>
  <p><a href="https://i.stack.imgur.com/aUIPh.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p><strong>My Postman...</strong></p>
  <p><a href="https://i.stack.imgur.com/bx6oE.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p><strong>My Web...</strong></p>
  <pre><code>The response to 'getList' must be like { data : [...] }, but the received data is not an array. The dataProvider is probably wrong for 'getList'
  </code></pre>
  <p><a href="https://i.stack.imgur.com/omf3f.png" rel="nofollow noreferrer">enter image description here</a></p>