var array = {[‘name’=>’hello’, ‘number’=>’000’],[‘name’=>’world’, ‘number’=>’111’]};
var json = JSON.stringify(array);
$.post({url,{str:json}…})
php:
$str = $_GET[‘str’];
$str = htmlspecialchars_decode($str );
$str = json_decode($str , true);
参考:
https://www.49855.net/php-parses-json-null-transmitted-by-ajax