<?php

$structure = "";
if (isset($_SESSION['structure']))
	$structure = $_SESSION['structure'];
	
$struct = json_decode($structure);
$updates = $_REQUEST['grid'];
$newstruct = json_decode($updates);
	
print_r($structure);
print_r($newstruct);
?>