Decoding response error in extjs
===

I am doing the following stuff when a form is submitted. But I get this error:


Error decoding response: SyntaxError: syntax error


Here is my onSubmit success function:

    onSubmit: function() {
    	var vals = this.form.getValues();	
    	Ext.Ajax.request({
    	url: 'ticketSession.php',
    	jsonData: {
    		"function": "sessionTicket",
    		"parameters": {
    			"ticket": vals['ticket']
    		}
    	},
    	success: function( result, request ) {
    		var obj = Ext.decode( result.responseText );
    		if( obj.success ) {
    			//alert ('got here');
    			th.ticketWindow.hide();
    			Web.Dashboard.loadDefault();
    	
    		}
    	},

Here is my ticketSession.php

    <?php
    function sessionTicket($ticket) {
    	if( $_REQUEST['ticket'] ) {
    		session_start();
    		$ticket = $_REQUEST['ticket'];
    		$_SESSION['ticket'] = $ticket;
    		echo("{'success':'true'}");
    	
    	 }
    	echo "{'failure':'true', 'Error':'No ticket Number found'}");
    	
    }
    ?>

syntax error
[Break On This Error] 	

()