Hi @pslobo,
If you want to filter out some or all of the attributes of your object based on a condition then you can do that with a for
expression that has an if
clause:
{ for k, v in input_object : k => v if enabled }
input_object
could be a direct, inline object expression in your case, since it seems like you had the object written inline in the jsonencode
argument before.