4 ms·PHP 8.3 introduces a new function: JSON_validate()2 points by nunomaduro 3y agonunomaduro 3y agoWith this new function, it is now easier than ever to determine if a string contains valid JSON.