@@ 98-103 (lines=6) @@ | ||
95 | case 'json-ss': |
|
96 | case 'json-ss-dt': |
|
97 | return $this->reserializeBody($response, '\Serialize\JsonSpreadSheet'); |
|
98 | case 'data-table': |
|
99 | //This is a special case for json... |
|
100 | $body = $response->getBody(); |
|
101 | $body->rewind(); |
|
102 | $data = json_decode($body->getContents()); |
|
103 | return $response->withJson(array('data'=>$data)); |
|
104 | case 'odata-json': |
|
105 | //This is a special case for json... |
|
106 | $body = $response->getBody(); |
|
@@ 104-109 (lines=6) @@ | ||
101 | $body->rewind(); |
|
102 | $data = json_decode($body->getContents()); |
|
103 | return $response->withJson(array('data'=>$data)); |
|
104 | case 'odata-json': |
|
105 | //This is a special case for json... |
|
106 | $body = $response->getBody(); |
|
107 | $body->rewind(); |
|
108 | $data = json_decode($body->getContents()); |
|
109 | return $response->withJson(array('value'=>$data)); |
|
110 | case 'xml': |
|
111 | case 'application/xml': |
|
112 | case 'text/xml': |