Skip to content

Commit 7ce68ce

Browse files
authored
Fix uppercase 'json'
See #526
1 parent 6559894 commit 7ce68ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/extending-modx/services/modrest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $url = 'http://site.ru/rest/products';
2929
$params = array('limit' => 100);
3030
/* @var modRest $client */
3131
$client = $modx->getService('rest', 'rest.modRest');
32-
// $client->setOption('format','JSON'); // The format of the received data accepts json or xml (json by default) for conversion to an array
32+
// $client->setOption('format','json'); // The format of the received data accepts json or xml (json by default) for conversion to an array
3333
$response = $client->get($url, $params);
3434
$data = $response->process(); // Will return an array
3535
```

0 commit comments

Comments
 (0)