-
Improvement
-
Resolution: Won't Fix
-
Minor
-
None
-
4.2
-
None
-
MOODLE_402_STABLE
A new function for json_validate has been added to PHP. 8.3. We could look to use this instead of querying the json_last_error() function for this information (or just not checking properly at all).
There is a polyfill available: https://php.watch/versions/8.3/json_validate#polyfill
We could add this polyfill and recommend that any code working with JSON make use of the json validation.
- is duplicated by
-
MDL-79895 PHP 8.3: Added json_validate function
-
- Closed
-