diff --git a/src/Reflect/Client.php b/src/Reflect/Client.php index 766e309..7acdcc3 100644 --- a/src/Reflect/Client.php +++ b/src/Reflect/Client.php @@ -97,7 +97,8 @@ // The first header line and second word will contain the status code. $resp_code = (int) explode(" ", $http_response_header[0])[1]; - return [$resp_code, $resp]; + // Return response as [, ] + return [$resp_code, json_decode($resp)]; } // Make request and return response over socket