title: Consume Json api format in emberjs
body: <pre><code>data: [
         
      expiration-date: &quot;2023-06-01T00:00:00&quot;
      name: &quot;Big Fish&quot;
      id: &quot;12932&quot;
      membership-benefits: [{
              available-quantity: 0
              expiration-days: null
              expired-quantity: 0
              is-expired: false
              is-unlimited: false
              name: &quot;Small Fish&quot;
              status: {id: 2, name: &quot;Active&quot;}
              total-earned-quantity: 1
              used-quantity: 1
             }]
  </code></pre>
  <p>in model</p>
  <pre><code>@attr('string') name;
  @attr('array') membershipBenefits;
  @attr('string') expirationDate;
  </code></pre>
  <p>now when i m accessing the values :</p>
  <pre><code>console.log(model.name) /// Big Fish ✔️
  console.log(model.expirationDate) /// 2023-06-01T00:00:00✔️
  console.log(model.membershipBenefits[0].name) /// small Fish ✔️
  console.log(model.membershipBenefits[0].status) ///  {id: 2, name: &quot;Active&quot;} ✔️
  console.log(model.membershipBenefits[0].isUnlimited) /// undefined ❌
  console.log(model.membershipBenefits[0].isExpired) /// undefined ❌
  </code></pre>
  <p>i am getting undefined value when i m accessing hyphenated properties of membershipBenefit array
  What is the correct way to access these properties??????</p>