Re: RFC json_validate() - status: Under Discussion
| From: | Paul Crovella | Date: | Fri, 26 Aug 2022 08:56:31 +0000 |
| Subject: | Re: RFC json_validate() - status: Under Discussion | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118488@lists.php.net to get a copy of this message | ||
On 8/26/2022 1:28 AM, Peter Bowyer wrote:
Hi Juan, On Thu, 25 Aug 2022 at 17:02, juan carlos morales < dev.juan.morales@gmail.com> wrote:I'm for this as well. Though something more than a boolean is useful to indicate when the max depth has been exceeded as that's not strictly a problem with the json's validity.RFC: https://wiki.php.net/rfc/json_validateThanks for bringing forward this RFC. I am in favour of this change, as you can't efficiently validate JSON in userland. Like Rowan I'm not convinced JSON_THROW_ON_ERROR belongs here. I can't think of a case where more than a boolean response is needed. Peter