Skip to content

Commit

Permalink
Fix uppercase 'json'
Browse files Browse the repository at this point in the history
See #526
  • Loading branch information
Jako authored Oct 17, 2024
1 parent 6559894 commit 7ce68ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/extending-modx/services/modrest.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $url = 'http://site.ru/rest/products';
$params = array('limit' => 100);
/* @var modRest $client */
$client = $modx->getService('rest', 'rest.modRest');
// $client->setOption('format','JSON'); // The format of the received data accepts json or xml (json by default) for conversion to an array
// $client->setOption('format','json'); // The format of the received data accepts json or xml (json by default) for conversion to an array
$response = $client->get($url, $params);
$data = $response->process(); // Will return an array
```
Expand Down

0 comments on commit 7ce68ce

Please sign in to comment.