开发者

Alternative to json_last_error() on php 5.2?

开发者 https://www.devze.com 2023-03-30 15:58 出处:网络
My json_decode() is failing, but I can\'t call json_last_error() because that function isn\'t available in PHP 5.2.6 (introduced in 5.3).

My json_decode() is failing, but I can't call json_last_error() because that function isn't available in PHP 5.2.6 (introduced in 5.3).

Is there another way for me to get the error message 开发者_开发百科so I can debug my php?


Here is a JSON validator. Copy your JSON into it and it will tell you where the errors are.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号