TAG ARCHIVE
Everything on json.
2 articles tagged json, sorted newest first.
php
Syntax Error, Line 1: PHP 8.6 Finally Tells You Where Your JSON Broke
PHP 8.6 adds the line and column of the failure to every JSON error message. Here is how to wire that into a Laravel app so bad webhooks diagnose themselves.
8 min read →
php
json_validate() vs try/catch json_decode(): Checking JSON Without Building It
json_validate() landed in PHP 8.3 and immediately got used in the one place it makes things worse. Here is what it is actually for.
9 min read →