Skip to Content
-1
Nov 04, 2019 at 05:47 AM

How to extract data from a JSONModel object in SAP UI5

556 Views

var oUserModel = new sap.ui.model.json.JSONModel("/services/userapi/currentUser");

//By this i am getting the data of the current user.

console.log(oUserModel)


//when i print it in console I get the currentUser data in the oData Section of the object.Can I know how to extract the data.