You cannot directly insert a JSON object to a dom. JSON object toString() method will always give u [object object], that is why you are getting this. You ve to parse the data by using
JSON.stringify(data) or you have to run $.each(data,function(val){ $("#result").append(val) }).