bad code. you trying to store 2 models - Odata and json as unnamed in core, now you replace it with json model
do
this.getView(oModel, "YourJsonModel") and
sap.ui.getCore().setModel(oModel, "YourJsonModel") ( this is actually redundant )
bad code. you trying to store 2 models - Odata and json as unnamed in core, now you replace it with json model
do
this.getView(oModel, "YourJsonModel") and
sap.ui.getCore().setModel(oModel, "YourJsonModel") ( this is actually redundant )