Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
How to get two elements of a JSON?

I have a file JSON with several elements. I want to retrieve this 2 variables in my webpage.

    "LIN":"",
    "LIB":"Droits de garde pour juillet 2021 Fundsettle",
    "ZON":"                2,60 EUR",
    "COL":""

My file JSON is on Jsonblob

For now, I retrieve each element on my page, Instead of Droits de garde pour juillet 2021 Fundsettle and 2.60 EUR.

enter image description here

HTML

<div class="row">
   <div class="col-12 col-md-6" *ngFor="let l of annexeDetails?.TAB; let i=index">
      <div class="col-12 col-md-6">
         {{l.LIB}} 
      </div>
      <div class="col-12 col-md-6">
         {{l.ZON}}
      </div>
   </div>
</div>

TS

prepareDataForTemplate(res) {
    if (res.RETURNCODE == 'OKK00') {
        this.annexeDetails = res.JANX;

        console.log("Test" + JSON.stringify(this.annexeDetails));



    } else {
        if (res.RETURNLIST.length > 0) {
            this.errors = res.RETURNLIST;
        }

    }
}

enter image description here

I think that the problem is my code HTML, but I am not sure.

Thanks

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!