Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports json to array conversion #3200

Closed
xfstu opened this issue Mar 9, 2024 · 1 comment
Closed

Supports json to array conversion #3200

xfstu opened this issue Mar 9, 2024 · 1 comment

Comments

@xfstu
Copy link

xfstu commented Mar 9, 2024

Description

We want to support json to array conversion without the developer having to write the array conversion method twice

Example

example:

$client = new Client(['base_uri' => 'http://foo.com/api/']);
$response = $client->get('data');
$body = $response->getBody()->getContents()->toArray();

Additional context

@GrahamCampbell
Copy link
Member

Thanks but this is not part of the PSR7 interface, so will never be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants