title: I need one proprieties of json file but my code pull out all of them
body: <p>I have this problem I have to use a part of a json file because when the app calls an image it leans on the ID present in the json file</p>
  
  <p>es.</p>
  
  <pre><code>&lt;img (click) = "seeHeroDetails (hero)" mat-card-image src = "assets / images / heroes / {{hero.id}}. jpg"&gt;
  </code></pre>
  
  <p>But only that the page calls me all the json and not just the part that interests him and therefore does not call the image because he does not know which id to take, so how do I "cut" the rest of the json that I do not need?</p>
  
  <p>this is the json</p>
  
  <pre><code>[
  {
  id: "1",
  name: "Spiderman",
  alter_ego: "Peter Parker",
  likes: "106",
  default: true,
  },
  {
  id: "2",
  name: "Superman",
  alter_ego: "Clark Kent",
  likes: "27",
  default: true,
  },
  {
  id: "3",
  name: "Batman",
  alter_ego: "Bruce Wayne",
  likes: "98",
  default: true,
  },
  {
  id: "4",
  name: "Wonder woman",
  alter_ego: "Diana Prince",
  likes: "78",
  default: true,
  },
  {
  id: "5",
  name: "Iron man",
  alter_ego: "Tony Stark",
  likes: "65",
  default: true,
  },
  </code></pre>
  
  <p>I need this </p>
  
  <pre><code>[
  {
  id: "1",
  name: "Spiderman",
  alter_ego: "Peter Parker",
  likes: "106",
  default: true,
  },
  ]
  </code></pre>
  
  <p>when i call the image.</p>
  
  <p>Thanks for all the answers.</p>