@@ 95-100 (lines=6) @@ | ||
92 | case 'text/x-json': |
|
93 | case 'json': |
|
94 | return $response; |
|
95 | case 'data-table': |
|
96 | //This is a special case for json... |
|
97 | $body = $response->getBody(); |
|
98 | $body->rewind(); |
|
99 | $data = json_decode($body->getContents()); |
|
100 | return $response->withJson(array('data'=>$data)); |
|
101 | case 'odata-json': |
|
102 | //This is a special case for json... |
|
103 | $body = $response->getBody(); |
|
@@ 101-106 (lines=6) @@ | ||
98 | $body->rewind(); |
|
99 | $data = json_decode($body->getContents()); |
|
100 | return $response->withJson(array('data'=>$data)); |
|
101 | case 'odata-json': |
|
102 | //This is a special case for json... |
|
103 | $body = $response->getBody(); |
|
104 | $body->rewind(); |
|
105 | $data = json_decode($body->getContents()); |
|
106 | return $response->withJson(array('value'=>$data)); |
|
107 | case 'xml': |
|
108 | case 'application/xml': |
|
109 | case 'text/xml': |