home.social
  1. How to Check if a String Is Valid JSON in PHP: json_validate() (and When Not to Use It)

    PHP 8.3's json_validate() tells you if a string is valid JSON without decoding it. Tested examples, and the one time you shouldn't use it.

    iancroasdell.wordpress.com/202

Share on Mastodon

Enter the server where you have an account.