loadType($type, $id); $hedgehog_data = array( "landscape_table" => $obj->getLandscapeTable(), "moves_table" => $obj->getMoves(), "actor" => $obj->getTaskType(), "friend" => $obj->getFriend(), ); $encoded = json_encode($hedgehog_data); echo($encoded); ?>