I am sending an ajax request with two post values, the first is "action" which defines what actions my php script has to parse, the other is "id" which i
Try this code. You don't require the parse function because your data type is JSON so it is return JSON object.
$.ajax({ url : base_url+"Login/submit", type: "POST", dataType: "json", data : { 'username': username, 'password': password }, success: function(data) { alert(data.status); } });