You can make PHP throw an exception when decoding JSON if the value isn't valid JSON

You can make PHP throw an exception when decoding JSON if the value isn't valid JSON

Had no idea you could have PHP throw a built-in exception when decoding JSON -- I've always done this manually until today 😭

We're writing a book, you can get it for free here.