Skip to main content
Question

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

  • September 11, 2022
  • 1 reply
  • 43 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+10
  • Navigator | Tier 3
  • 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