有人可以帮助我如何使用液体模板从下面提取 itemid 吗?:
{
"orders": [
{
"id": 3688882438313,
"line_items": [
{
"id": 9698678243497
},
{
"id": 9698678276265
}
]
}
]
}
I can get the order id from the following template:
{
"Order" : [
{% for order in content.orders%}
{
"ID" : "{{ order.id }}",
},
{% endfor %}
]
}
但无论我尝试什么,似乎都无法提取项目 ID,我们将不胜感激。