title: How do I display json get result using Wix Code?
body: <p>I'm working with a non-profit cat shelter trying to update their website. They want to have a page that connects to their shelter manager software to display the available cats for adoption. Luckily, their shelter manager offers API calls to get the information I need from it. </p>
  
  <p>They use Wix as their platform and are pretty set on keeping it as most of their volunteers know how to make easy adjustments to other pages. I researched and found Wix offers the ability to connect to the API using their fetch method.</p>
  
  <p>Basically, I am trying to get a dynamic page to display a repeater that is populated from their json API Get method. </p>
  
  <p>Currently, for the backend I have (URL to API removed for security):</p>
  
  <pre><code>import {fetch} from 'wix-fetch';
  
  export function  getdata(){
    return fetch('URL to API Service', {method: 'get'})
      .then( (httpResponse) =&gt; {
        if (httpResponse.ok) {
          return httpResponse.json();
        } 
      } );
  </code></pre>
  
  <p>}</p>
  
  <p>On the page, this is where I think I am getting stuck:</p>
  
  <pre><code>import {getdata} from 'backend/fetchCats';
  
   getdata()
          .then(json =&gt; {
  
              console.log(json);          
  
              var catData = json;
  // static repeater data
  
  $w.onReady(function () {
    // handle creation of new repeated items
    $w("#repeater1").onItemReady( ($item, itemData, index) =&gt; {
      $item("#text23").text = itemData.ANIMALNAME;  
    } );
  
    // set the repeater data, triggering the creation of new items
    $w("#repeater1").data = catData;
  
  } );
  });
  </code></pre>
  
  <p>The above is giving me the error: Wix code SDK error: Each item in the items array must have a member named <code>_id</code> which contains a unique value identifying the item.</p>
  
  <p>I know the JSON call has an ID field in it, but I am guessing Wix is expecting an _id field. </p>
  
  <p>Am I just doing this wrong? Or am I missing something simple? I've spent a couple nights searching but can't really find a full example online that uses Wix's fetch method to get data via my HTTPS Get.</p>
  
  <p>Thanks for any help!</p>