Achieves D10 compatibility by switching from
json_decode()
Drupal\Component\Serialization\Json::decode
Drupal\Core\Http\RequestStack
Symfony\Component\HttpFoundation\RequestStack
Closes #3388130.