Skip to Content
0
Jul 03, 2015 at 12:33 PM

How to get single property from JSON model

1135 Views

I'm trying to get single porperty value into variable from JSONModel and I just cant get it right.

var jsonSetTableModel = new sap.ui.model.json.JSONModel();

jsonSetTableModel.loadData(link);

console.log(jsonSetTableModel);

I tried like this jsonSetTableModel.getProperty("/d/results/NARTIFACT_ID");

This returns null, what am I doing wrong?

Attachments

Capture.PNG (11.4 kB)