Json error - better message

From: Date: Tue, 16 Jul 2024 16:51:58 +0000
Subject: Json error - better message
Groups: php.internals 
Request: Send a blank email to internals+get-124449@lists.php.net to get a copy of this message
Hello Internals again: I created this pull request: https://github.com/php/php-src/pull/14672 To have better error messages when decoding a JSON in php using the json_last_error_msg() function. With this change I pretend to have a message like: "Syntax error, at character 0 near content: blah" I would like to heard your comments about it and if you have comments about implementation please write your comments in the PR. I hope we can get this done soon. thanks in advance. Juan

« previous php.internals (#124449) next »