diff --git a/http-message/Parse.php b/http-message/Parse.php index 32c7961c..bcfde118 100644 --- a/http-message/Parse.php +++ b/http-message/Parse.php @@ -16,9 +16,8 @@ class Parse public static function data($content, $contentType): mixed { if (str_contains($contentType, 'json')) { - return json_encode($content); + return json_encode($content,true); } - var_dump($contentType); if (str_contains($contentType, 'xml')) { return Xml::toArray($content); }