我得到帖子arg:
//var_dump($_POST['arg']);
{\"username\":\"demo\",\"password\":\"demo\",\"language\":\"7\",\"remember\":\"1\",\"recaptcha_response_field\":\"not torkedSe\",\"recaptcha_challenge_field\":\"03AHJ_VutYReMoMIpG755a_BDrIBquklWRSpf0OmMm_HGaIxCwRH1DFwXU2zdSTEprqGi66rAMd0LaewbcNK12Iir2DQTGAA-DzJZ_jjQQ0WP2JLoG3ANr0HdV3glmovv0B67nqejAj01FrtJA3SaulnTh5q6WwttshJnjBKitI6Np1gejMhIwXQo\"}
但是当我得到时json_decode
,我得到NULL
:
$Param = json_decode($_POST['arg'], true);
//var_dump($Param); return NULL
我还检查错误:
var_dump($Param,
$error === JSON_ERROR_NONE,
$error === JSON_ERROR_DEPTH,
$error === JSON_ERROR_STATE_MISMATCH,
$error === JSON_ERROR_CTRL_CHAR,
$error === JSON_ERROR_SYNTAX,
$error === JSON_ERROR_UTF8);
并得到:
NULL
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
请告诉我哪里出错了?