You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aku
changed the title
Pebble filters against JSON inputs produce non-JSON strings
Pebble filters applied against JSON inputs produce non-JSON strings
Jul 16, 2024
aku
changed the title
Pebble filters applied against JSON inputs produce non-JSON strings
Pebble filters applied to JSON inputs produce non-JSON strings
Jul 19, 2024
Describe the issue
If you have a JSON field, e.g.
and want to apply pebble filters such as replace or escapeChar the resulting string will loose JSON formatting.
"{{ inputs.payload | escapeChar('single') }}"
->[{name=single quote in string \'}]
if you do the same against STRING field it will produce expected result
[{"name":"single quote in string \'"}]
I.e. when you use pebble filters with JSON it gets serialized to string which is non-json compliant
Context and examples: https://kestra-io.slack.com/archives/C03FQKXRK3K/p1720800171410189
Example:
Environment
The text was updated successfully, but these errors were encountered: