var data = {
url: "my_url",
info: [
{
type: "sedan",
value: "bmw z 11"
}
]
};
$.ajax({
type: 'POST',
url: 'CreateNew.php',
dataType : "json",
data: {
myData: data
},
complete: function(data) {
console.log('OK');
$('.result').html(data);
}
});
$data = $_POST["myData"];
$url = $data['url'];
echo json_encode($url);