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

How to extract data from a JSONModel object in SAP UI5


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

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


//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.