> For the complete documentation index, see [llms.txt](https://svgtas-organization.gitbook.io/php-oidc-client/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://svgtas-organization.gitbook.io/php-oidc-client/utils/verify-if-json.md).

# Verify if json

You can veritfy if a string is a json. The response is a boolean.

```php
use Svgta\OidcLib\OidcUtils;

$isJson = Oidcutils::isJson('My string');
// false;
$isJson = Oidcutils::isJson('{"key": "first", "value": "test"}');
// true;
```
