Skip to content

Commit

Permalink
Merge pull request #115 from dreamfactorysoftware/fix-return-json-data
Browse files Browse the repository at this point in the history
Fix return json data
  • Loading branch information
Anas committed Sep 18, 2023
2 parents 36b561b + ca255e1 commit 8f23d44
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 8f23d44

Please sign in to comment.