0

I want to print the id from this json response using iron-ajax:

{"calinzabalt":{"id":22309843,"name":"calin zabalt","profileIconId":7,"summonerLevel":30,"revisionDate":1467295590000}}

Using this line of code:

 <iron-ajax auto
url="https://euw.api.pvp.net/api/lol/euw/v1.4/summoner/by-name/calin%20zabalt?api_key=3012a279-b76c-4df2-b522-2198a0cbe7cc"
handle-as="json"
last-response="{{response}}"></iron-ajax>
<template is="dom-repeat" items="{{response}}" >
<p>[[item.id]]</p>
</template>
</template>

And this is the message i get from chrome:

enter image description here

Thank you!

Paul Cozma
  • 140
  • 2
  • 10

0 Answers0