how to write .json file in codeignitor using angular.js : I am new to codeignitor and i want to create todo app.anyone suggest me how to write code for fetch data from database and display using json using angular.js.