jquery-form and json problems
===

good day guys, i'm using jquery-form to submit a multipart form..

this is my php code

    foreach($addedData as $key => $value)
		$result[$key] = $value;

    echo json_encode($result);

javascript

    function showResponse(responseText){
       alert(responseText);
    }
    $('button').click(function(){
    	$("form").ajaxForm({
    		success: showResponse,
    		clearForm: true,
   		dataType: "json",
		contentType: "application/json; charset=utf-8"
    	});
    });
with this, the response was [object Object]

but when I removed these two lines

       		dataType: "json",
    		contentType: "application/json; charset=utf-8"
the response became

    {"key1":"val1","key2":"va2","key3":"val3"}
my questions are, do I really have to remove those two lines? and how can I get the values of the responseText using json?

