* @cfg {String} successProperty Name of the property from which to retrieve the success attribute used by forms.
* @cfg {String} root name of the property which contains the Array of row objects.
* @cfg {String} id Name of the property within a row object that contains a record identifier value.
+ * @cfg {Array} fields Array of field definition objects
* @constructor
* Create a new JsonReader
* @param {Object} meta Metadata configuration options
if(!o) {
throw {message: "JsonReader.read: Json object not found"};
}
-
+ Roo.log(o);
if(o.metaData){
delete this.ef;
*/
this.o = o;
var s = this.meta, Record = this.recordType,
- f = Record ? Record.prototype.fields : null, fi = f.items, fl = f.length;
+ f = Record ? Record.prototype.fields : null, fi = f ? f.items : [], fl = f ? f.length : 0;
// Generate extraction functions for the totalProperty, the root, the id, and for each field
if (!this.ef) {