Skip to content

Commit 9f169a1

Browse files
committed
Added a new function that decodes json
1 parent 372955e commit 9f169a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/StringExpressionLanguageProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function getFunctions(): array
2222
ExpressionFunction::fromPhp('strpos', 'indexOf'),
2323
ExpressionFunction::fromPhp('str_replace', 'replace'),
2424
ExpressionFunction::fromPhp('strip_tags', 'clean_up_html'),
25+
ExpressionFunction::fromPhp('json_decode', 'decode'),
2526
new FileName('fileName'),
2627
new DateTime('dateTime'),
2728
new FormatDate('formatDate'),

0 commit comments

Comments
 (0)