The JSON model can be used to bind controls to JavaScript object data, which is usually serialized in the JSON format.
The JSON model is a client-side model and, therefore, intended for small data sets, which are completely available on the client. The JSON model does not support mechanisms for server-based paging or loading of deltas. It supports, however, two-way binding. Also, client-side models like the JSON model have no built-in support for sending data back to the server. The apps have to use, for example, model.getData() and jQuery.ajax() to send updated data to the server.
#!jsvar oModel = new sap.ui.model.json.JSONModel();
After the instance has been created, there are different options to get the data into the model.
#!jsoModel.setData({ firstName: "Peter", lastName: "Pan" });
#!jsoModel.loadData("data.json");
For more information, see the API Reference in the Demo Kit.