Writer JsonWriter
Package: | Ext.data |
Defined In: | JsonWriter.js |
Class: | JsonWriter |
Extends: | Writer |
Writer that outputs model data in JSON format
Config Options | Defined By | |
---|---|---|
encode : Boolean True to use Ext.encode() on the data before sending. Defaults to false. | JsonWriter | |
root : String The key under which the records in this Writer will be placed. Defaults to 'records'.
Example generated request:
{'re... The key under which the records in this Writer will be placed. Defaults to 'records'.
Example generated request:
| JsonWriter |
Method | Defined By | |
---|---|---|
getRecordData( Object record )
:
ObjectFormats the data for each record before sending it to the server. This
method should be overridden to format the data... Formats the data for each record before sending it to the server. This
method should be overridden to format the data in a way that differs from the default. Parameters:
| Writer | |
write( Ext.data.Request request )
:
Ext.data.RequestPrepares a Proxy's Ext.data.Request object Prepares a Proxy's Ext.data.Request object Parameters:
| Writer |