我想将此 jsonString 传递给我的查询
xxxxxx=createVenue&clientId=2&jsonString={"veneue":{"clientId":"b","name":"d","tagline":"f","phone":"b","address":"d","city":"f","state":"b","zip":"d","twitter":"f","license":"d","imagePath":"f","pickupLocation":"b"},"drinks":[{"type":"d","name":"f","servingTable":{"servingSize":"b","price":"d"}},{"type":"d","name":"f","servingTable":{"servingSize":"b","price":"d"}}],"spirits":[{"type":"d","name":"f","servingTable":{"servingSize":"b","price":"d"}},{"type":"d","name":"f","servingTable":{"servingSize":"b","price":"d"}}]}
但是当我在 php 中对其进行解码时,它返回 null。
$clientId = trim($_REQUEST['clientId']);
$jsonString = trim($_REQUEST['jsonString']);
$decodedJSON = json_decode($jsonString);
return $decodedJSON;
$decodedJSON 返回空值;
怎么了 ?