Re: RFC Idea - is_json - looking for feedback
| From: | Aleksander Machniak | Date: | Sat, 30 Jul 2022 06:05:23 +0000 |
| Subject: | Re: RFC Idea - is_json - looking for feedback | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118316@lists.php.net to get a copy of this message | ||
On 29.07.2022 16:26, juan carlos morales wrote:
is_json(string $string): booljson_decode() has $depth argument, I think is_json() probably also should. And I'm not sure about JSON_INVALID_UTF8_IGNORE flag. My point is that if you use these with json_decode() you might also need to use these with is_json(). On the other hand maybe the function should be as simple as possible, but I'd like it to be considered. -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com