1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/you-can-make-php-throw-an-exception-when-decoding-json-if-the-value-isnt-valid-json.md
2021-10-29 21:16:27 +02:00

521 B

title tweet_id thread_slug author_username images created_at slug
You can make PHP throw an exception when decoding JSON if the value isn't valid JSON 1454133803056775178 weekly-thread-2021-43 SteveTheBauman
https://pbs.twimg.com/media/FCuqk2zWQAsk08o.jpg
2021-10-29T17:11:29+00:00 you-can-make-php-throw-an-exception-when-decoding-json-if-the-value-isnt-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 😭