Above image is the document example, and below is the json we are passing
{
“customerDetails”: [
{
“name”: “venkat”,
“purchasedItems”: {
“insert_rows”:[[“paste”,“10”,“04/08/2022”],[“brush”,“5”,“04/08/2022”]]
}
}
]
}
It appears you have structured the loop incorrectly. Please refer to the following page:
If that doesn’t solve your issue, please make sure that both sides of the table have the same number of rows, i.e. repeat the customer name “Venkat” for each row of “Items Purchased”.
Please let me know how this works for you, and if you have any further questions.
Thanks @kmirsalehi. I have one more requirement.
I am providing json string like below,
{
“address”: [
{
“name”: “Florida”,
“code”: “FL”
},{
“name”: “Illinois”,
“code”: “IL”
}
]
}
where address field is having multiple objects, while converting from word to pdf document. I want to print only first object in table. Is it possible. Samples providing below,
Input file,
You would need to simply cut your JSON input so it only includes the first entry. You can not only display the first item when your JSON is passing in multiple items.