The JSON model has a simple binding path syntax, because it consists of named objects, such as properties, arrays, or nested objects.
The following example shows a simple JSONModel with the different binding paths:
#!js { company: { name: "Treefish Inc", info: { employees: 3, }, contacts: [ { name: "Barbara", phone: "873" }, { name: "Gerry", phone: "734" }, { name: "Susan", phone: "275" } ] } }
Absolute binding paths within this model:
/company/name /company/info/employees /company/contacts
Relative binding paths within the "/company" context:
name info/employees contacts
Relative binding paths within an aggregation binding of "/company/contacts":
name phone