HI Venkat
Still cant get it to work. I have the view defined in a separate folder.
so i tried
var json1 = new sap.ui.model.json.JSONModel("./models/data.json");
<note the period before /model> but error
GET http://localhost:8080/<projectName>/models/data.json 404 (Not Found)
Thanks
Sandip