Run Rector on your code to see what it can do for you:
<?php -use Json; - - class Json { } -var_dump(JSON::class); +var_dump(JSON::class);
rector.php