この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 null を返します。
なにが問題ですか ?