Skip to content

Commit

Permalink
🐛 BASE #270 correção retorno do json
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Sep 27, 2022
1 parent 3104cc6 commit b4e8ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appexemplo_v2.0/api/api_controllers/TGenericAPI.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct()
public static function getBodyJson($msg, Response $response,$status=200)
{
$status = empty($status)?200:$status;
$msgJson = json_encode($msg);
$msgJson = json_encode($msg, JSON_UNESCAPED_UNICODE);
$response->withHeader('Content-Type', 'application/json');
$response->getBody()->write( $msgJson );
return $response->withStatus( $status );
Expand Down

0 comments on commit b4e8ea5

Please sign in to comment.