Skip to content

Dynamic Key & Value Together #41

@kpkamalpundir

Description

@kpkamalpundir

Hi,
I am facing the issue if i want key to me dyanmic then in value is not getting evaluated.
For Example:
"occupancy_pricing": {
"{{meals[0].meal[0].id}}": {
"nightly": [
[
{
"type": "sales_tax",
"value": "0",
"currency": "{{ meals[0].meal[0].prices[0].price[0].attribute_value.currency}}"
},
{
"type": "base_rate",
"value": "0",
"currency": "{{ meals[0].meal[0].prices[0].price[0].attribute_value.currency}}"
}
]
]

results in

"occupancy_pricing": {
"AA": {
"nightly": [
[
{
"type": "sales_tax",
"value": "0",
"currency": "{{ meals[0].meal[0].prices[0].price[0].attribute_value.currency}}"
},
{
"type": "base_rate",
"value": "0",
"currency": "{{ meals[0].meal[0].prices[0].price[0].attribute_value.currency}}"
}
]
],

where as with static key it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions