Some applications can natively return data in XML, or even JSON, but it might not always be in the format Ext JS is expecting. As an example, the JsonStore, with its built-in JsonReader, expects an incoming dataset in the following format:
{ 'rootName': [ { 'variableName1': 'First record', 'variableName2': '0' },{ 'variableName1': 'Second record', 'variableName2': '3.5' } ] }
This (JSON) object has a rootName
property, which is the name of the root of the dataset, containing an array of objects. Each of these objects has the same attributes. The attribute names are in quotes. Values are typically in quotes, with the exception of numbers which may or may not be in quotes.
So, if a server-side call returns data in this expected format, then the base JsonReader included within the JsonStore will automatically parse the received datasets to populate the Store object. But what...