brug af "quotes" '; echo $s; $o = array('id' => 77, 'data' => $s); $json = json_encode($o); echo $json; ?>