Skip to main content
Question

How to extract data from the REST response like below HTML format? Kindly suggest

  • September 11, 2022
  • 1 reply
  • 34 views

 

<table class="data">

          <thead>

            <tr>

              <th>Customer ID</th>

              <th>First Name</th>

            </tr>

</thead>

        <tbody id="tablebody">

                        <tr class='data'>

                            <td>7956</td>

                            <td>Timothy</td>

                            <td>Langer</td>

         </tr></tbody>

</table>

1 reply

Ashwin A.K
Forum|alt.badge.img+8
  • Navigator | Tier 3
  • 2445 replies
  • September 12, 2022

Hi @Jaya Lakshmi​ ,

 

Are you trying to add the JSON data into a HTML?

Try using the JSON Package to initialize the JSON string, retrieve a node list and loop through each node while appending HTML Tags to it. before assigning it to a single block of string which will become the HTML.

 

Here is a video which explores the concept of chaining items to a HTML string.

 

Kind Regards,

Ashwin A.K


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings