jquery autocomplete

view

$(“input#store_id”).autocomplete({
source: “/admin/store/get-store-list”,
minLength: 2,
dataType: ‘json’
});

php
$stores = Doctrine_Query::create()
->from(“Stores’)
->where(‘name like ?’, “%{$term}%”)
->execute()
;
$json = array();
foreach($stores as $item){
array_push($json, array(
“label” => $item->name,
“value” => $item->slug
));
}
$this->_helper->json($json);

invalid label

AJAX invalid label error in Firebug
public function ajaxdeleteAction() {
if ($this->_request->isXmlHttpRequest()) {
//delete comment
$comment_id = $this->_getParam(‘id’);
$comment = Doctrine::getTable(‘Comment’)->find($comment_id);
//$comment->delete();

$json[‘status’] = ‘success’;
echo ‘{“status”:”success”}’;
//$this->_helper->json($json);
exit;
}
}

Error :invalid label

—————————————
Solution
put json in round bracket ()
echo ‘({“status”:”success”})’;