CrazyTapok-bit/tgWebValid

Check json for errors

Opened this issue · 0 comments

The json_decode function may issue an error if the string passed is not really json, or json but contains syntax errors. Therefore, it is necessary to finalize the handler and check for errors

$assoc = json_decode($data, true);