I have got my Liquid map working for all other entities but if I try to rename for e.g. @odata.etag object to odata.etag the map's output is an empty string so I guess it cannot access the entity with "@" in it. Another example of this is on OData API which has a "friendly name" e.g. code@OData.Community.Display.V1.FormattedValue. I can access and remap code but if I try to remap the friendly name it outputs an empty string.
I tried to use the following Liquid template:
[
{%- for i in body.value -%}
{
"etag": "{{i.@odata.etag}}", //This does not work
"type": "{{i.type}}", // This works
"typename": "{{i.type@OData.Community.Display.V1.FormattedValue}}" //This does not work
}
{%- if forloop.last == false -%}
,
{%- endif -%}
{%- endfor -%}
]
Example payload:
{
"@odata.context": "",
"value": [
{
"@odata.etag": "1",
"type": "0001",
"type@OData.Community.Display.V1.FormattedValue": "Normal",
}
]
}