There are 2 ways to achieve this:
1) Asynchronous way: By default the HTTP call that JSONModel makes is asynchronous. So if you want to access the Data after the HTTP request is completed then you need to use attachRequestCompleted method as mentioned in code snippet below.
This will automatically call the listener after the HTTP request is completed and in the listener you can attach the JSONModel to your view or perform other businsess logic as mentioned below:
var oModel = new JSONModel(jQuery.sap.getModulePath("QAQuickAccess", "/routes.json"));
oModel.attachRequestCompleted(null,function() {
console.log(oModel.getData());
this.getView().setModel(oModel) },
this);
2) Synchronous way: If you want the data to be loaded immediately then you can use the loadData method with below parameters. This will make the HTTP request synchronously:
var oModel = new JSONModel({});
var url = jQuery.sap.getModulePath("QAQuickAccess", "/routes.json")
oModel .loadData(url, "", false);
this.getView().setModel(oModel);
console.log(oModel .getData());