json_validate
pestphp/pest
Supported Versions: PHP 8 >= 8.3.0
Checks if a string contains valid JSON
<?php json_validate
(
string $json
,
int $depth
=
512
,
int $flags
=
0
):
bool