私は投稿引数を取得します:
//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)
エラーの場所を教えてください。