Clear Up
SharpKit Reference

Json Class

Namespace: Ext.data.reader

Base Types

System.Object

Constructors

Name Description
Json(JsonConfig)
Json()

Properties

Name Description
alias
alternateClassName
extend
root
useSimpleAccessors @cfg {Boolean} useSimpleAccessors True to ensure that field names/mappings are treated as literals when reading values. Defalts to false. For example, by default, using the mapping "foo.bar.baz" will try and read a property foo from the root, then a property bar from foo, then a property baz from bar. Setting the simple accessors to true will read the property with the name "foo.bar.baz" direct from the root object.

Methods

Name Description
buildExtractors()
extractData(object) @private We're just preparing the data for the superclass by pulling out the record objects we want. If a {@link #record} was specified we have to pull those out of the larger JSON object, which is most of what this function is doing @param {Object} root The JSON root node @return {Ext.data.Model[]} The records
getResponseData(object)
readRecords(object) Reads a JSON object and returns a ResultSet. Uses the internal getTotal and getSuccess extractors to retrieve meta data from the response, and extractData to turn the JSON data into model instances. @param {Object} data The raw JSON data @return {Ext.data.ResultSet} A ResultSet containing model instances and meta data about the results
© Copyright 2005-2011 SharpKit. All rights reserved.