home.social

#json_validate — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #json_validate, aggregated by 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.