NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class DefaultResponseParser

Default HTTP response parser used to marshal JSON responses into arrays and XML responses into SimpleXMLElement

  Guzzle\Service\Command\DefaultResponseParser implements Guzzle\Service\Command\ResponseParserInterface

### Direct known subclasses

`Guzzle\Service\Command\OperationResponseParser`

Namespace: Guzzle\Service\Command
Located at Guzzle/Service/Command/DefaultResponseParser.php

## Methods summary

- `public static` `getInstance ( )`
- `public` `parse ( Guzzle\Service\Command\CommandInterface $command )`

  Parse the HTTP response received by the command and update the command's result contents

- `protected` `handleParsing ( Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\Response $response, mixed $contentType )`

## Methods detail

# `public static `Guzzle\Service\Command\DefaultResponseParser``
`getInstance( )`

#### Returns

``Guzzle\Service\Command\DefaultResponseParser``

#### CodeCoverageIgnore

# `public mixed`
`parse( `Guzzle\Service\Command\CommandInterface` $command )`

Parse the HTTP response received by the command and update the command's result contents

#### Parameters

$command
  ``Guzzle\Service\Command\CommandInterface``
  $command Command to parse and update

#### Returns

`mixed`
Returns the result to set on the command

#### Implementation of

`Guzzle\Service\Command\ResponseParserInterface::parse()`
# `protected`
`handleParsing( `Guzzle\Service\Command\CommandInterface` $command, `Guzzle\Http\Message\Response` $response, mixed $contentType )`

### Magic methods summary

## Properties summary

`protected static `Guzzle\Service\Command\DefaultResponseParser`` | $instance | #