Description
to support static analysis tools, it would be really helpful to have flag-constants like JSON_FORCE_OBJECT and their value-types declared within stub files.
this types are very valuable to e.g. phpstan and could be picked up and be used while analyzing source code
see e.g. https://www.php.net/manual/en/function.json-encode.php for more examples