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