Question

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

  • 11 September 2022
  • 1 reply
  • 9 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

Userlevel 3
Badge +7

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