0

I have follwing JSON: {"mykey":[{name:"Jak",interests:"movies"}]}

and following opensocial app code:

  <script type="text/os-template" require="mykey">                           
    <ul>
      <li repeat="${mykey}">
          <span>Offer id: ${Cur.name}</span>              
          <span>Offer: ${Cur.interests}</span>          
      </li>
    </ul>
 </script>

but the App is not able to get the data from the JSON? Not able to find out the issue!

Abhishek Dhote
  • 1,638
  • 10
  • 41
  • 62

1 Answers1

0

I got the issue, actually the fix is as follows:


    Offer id: ${Cur.key.name}
    Offer: ${Cur.key.interests}
Abhishek Dhote
  • 1,638
  • 10
  • 41
  • 62