How to call JSON data "@"


#1

Hi , my url json is @_____ ,but i can’t to call this. how to get it ?
thanks you for your answers.

  "    RESULT":{
          "FACET":[{ "@NAME" : "creator", "@COUNT" : "20",
            "FACET_VALUES":[
            {
              "@KEY":"Book Company1",
              "@VALUE":"13"},
            {
              "@KEY":"Book Company1์",
              "@VALUE":"10"}
            ]

.

  this.http.get("my_url")
            .subscribe(data =>{
                     this.items=data.json().RESULT.FACET.FACET_VALUES;
            },error=>{
                console.log(error);
            } );

.

<ion-list>
    <ion-item *ngFor="let item of items" (click)="itemClicked($event,item)">
      <h2>{{item.@KEY}}</h2> /////this error 
      <p>{{item.@VALUE}}</p> /////this error 
      <button ion-button clear item-right (click)="buttonClick($event)">View</button>
    </ion-item>
  </ion-list>

#2

i can did it!

change {{item.@KEY}} to item["@KEY"]


#3

Perhaps it would be easier to write templates if you transcoded this rather unusual JSON into something more intuitive, perhaps as a postprocessing step in your backend API communication service. This might also help with your other problem.