parser = $parser ?: new JsonParser(); } protected function payload( ResponseInterface $response, StructureShape $member, array &$result ) { $jsonBody = $this->parseJson($response->getBody()); if ($jsonBody) { $result += $this->parser->parse($member, $jsonBody); } } }