Skip to content

Commit

Permalink
Add support for returning json data instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
anas-srikou committed Sep 18, 2023
1 parent 646c99e commit ca255e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Utility/DataFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,9 @@ public static function formatValue($value, $type)
$cfgFormat = static::getDateTimeFormat($type);

return static::formatDateTime($cfgFormat, $value);

case 'json':
return json_decode($value, true);
}

return $value;
Expand Down

0 comments on commit ca255e1

Please sign in to comment.