Skip to content

Dynamic Key & Value Together #41

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions