X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2FRoo.data.JsonReader.json;h=2e2f0ef582334ec5612d3880922073c660113d26;hb=23a0c8c1c7942f78ddb512df49e0ff19f12b06fa;hp=9ec74de137e6a84fcef3c4a6c84416d2800cc645;hpb=7811bdad238a16fa881fa617d9c4e53da624968e;p=roojs1 diff --git a/docs/symbols/Roo.data.JsonReader.json b/docs/symbols/Roo.data.JsonReader.json index 9ec74de137..2e2f0ef582 100644 --- a/docs/symbols/Roo.data.JsonReader.json +++ b/docs/symbols/Roo.data.JsonReader.json @@ -3,6 +3,7 @@ "augments" : [ "Roo.data.DataReader" ], + "childClasses" : [], "desc" : "Data reader class to create an Array of Roo.data.Record objects from a JSON response\nbased on mappings in a provided Roo.data.Record constructor.\n\nThe default behaviour of a store is to send ?_requestMeta=1, unless the class has recieved 'metaData' property\nin the reply previously. \n\n

\nExample code:\n

\nvar RecordDef = Roo.data.Record.create([\n    {name: 'name', mapping: 'name'},     // \"mapping\" property not needed if it's the same as \"name\"\n    {name: 'occupation'}                 // This field will use \"occupation\" as the mapping.\n]);\nvar myReader = new Roo.data.JsonReader({\n    totalProperty: \"results\",    // The property which contains the total dataset size (optional)\n    root: \"rows\",                // The property which contains an Array of row objects\n    id: \"id\"                     // The property within each row object that provides an ID for the record (optional)\n}, RecordDef);\n
\n

\nThis would consume a JSON file like this:\n

\n{ 'results': 2, 'rows': [\n    { 'id': 1, 'name': 'Bill', occupation: 'Gardener' },\n    { 'id': 2, 'name': 'Ben', occupation: 'Horticulturalist' } ]\n}\n
", "isSingleton" : false, "isStatic" : false,