sirVir commented on issue #34394:
URL: https://github.com/apache/airflow/issues/34394#issuecomment-1725557981

   For the future reference. The way to get the "getter" functionality with a 
nested json variables seems to be to use the full JINJA conditional syntax, 
checking for each level.
   `"{% if var.json.get('somekey', { 'somecontent': false } ).somecontent is 
defined %}{{var.json.get('somekey', { 'somecontent': false } ).somecontent}}{% 
else %}{{false}}{% endif %}"`
   
   This works.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to