🐝 Strangebuzz
  • Blog
  • Snippets
  • Tools
    Tools What is my IP? Is my password compromised? My emojis
  • Misc
    Technical project stack GDPR About
  • 🇫🇷
  • 🇬🇧

Symfony / PHP / JavaScript / Vue.js / Docker / Devops...

Less chitchat... more code.

  1. Home
  2. Snippets
  3. Validating a JSON string with the json_validate PHP function
  4. Snippet execution

Output of the "Validating a JSON string with the json_validate PHP function" PHP snippet

Environment:

  • Strangebuzz Snippet VM: 6.4.9
  • PHP: 8.4

Code execution output:

{foo: bar} ❌
{"foo": "bar"} ✅

 Back to the code  More on Stackoverflow   Read the doc  Random snippet

  Work with me!


... by COil
 PHP  PHP 8.3  json  Validation  decode

  Retrieving the data size in bytes of a PHP ini configuration value

Quick GIT commit function for the Fish shell  

Strangebuzz EURL
© Made by COil, © 2007-2025. Powered by Symfony
Symfony ™ is a trademark of Symfony SAS.
  • 🦋