我想将 Postman Tests 中的以下数据可视化为带有product
、列和price
行的表格。可能有多个 shippingGroups。quantity
Items
{
...
"companyGroups": [
{
...
"shippingGroups": [
{
"id": 1,
"items": [
{
"product": "Product A",
"price": 2,
"quantity": 1,
},
{
"product": "Product B",
"price": 4,
"quantity": 4,
}
],
...
]
}
],
我无法{{#each response???}}
在多个级别对象中使用对项目的引用。预期的格式应该是这样的:
<table>
<tr>
<th>Product</th>
<th>Price</th>
<th>Quantity</th>
</tr>
{{#each response???}}
<tr>
<td>{{???product}}</td>
<td>{{???price}}</td>
<td>{{???quantity}}
</tr>
{{/each}}
</table>
有关邮递员表可视化响应的更多信息在这里