X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/source/Json2.html diff --git a/docs/source/Json2.html b/docs/source/Json2.html index 82ab99c8..f2a93cb3 100644 --- a/docs/source/Json2.html +++ b/docs/source/Json2.html @@ -1,14 +1,36 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
  * @class Ext.data.writer.Json
  * @extends Ext.data.writer.Writer
- * @ignore
+
+This class is used to write {@link Ext.data.Model} data to the server in a JSON format.
+The {@link #allowSingle} configuration can be set to false to force the records to always be
+encoded in an array, even if there is only a single record being sent.
+
+ * @markdown
  */
 Ext.define('Ext.data.writer.Json', {
     extend: 'Ext.data.writer.Writer',
     alternateClassName: 'Ext.data.JsonWriter',
     alias: 'writer.json',
     
-    /**
+    /**
      * @cfg {String} root The key under which the records in this Writer will be placed. Defaults to <tt>undefined</tt>.
      * Example generated request, using root: 'records':
 <pre><code>
@@ -17,7 +39,7 @@ Ext.define('Ext.data.writer.Json', {
      */
     root: undefined,
     
-    /**
+    /**
      * @cfg {Boolean} encode True to use Ext.encode() on the data before sending. Defaults to <tt>false</tt>.
      * The encode option should only be set to true when a {@link #root} is defined, because the values will be
      * sent as part of the request parameters as opposed to a raw post. The root will be the name of the parameter
@@ -25,7 +47,7 @@ Ext.define('Ext.data.writer.Json', {
      */
     encode: false,
     
-    /**
+    /**
      * @cfg {Boolean} allowSingle False to ensure that records are always wrapped in an array, even if there is only
      * one record being sent. When there is more than one record, they will always be encoded into an array.
      * Defaults to <tt>true</tt>. Example:
@@ -75,4 +97,6 @@ Ext.define('Ext.data.writer.Json', {
         return request;
     }
 });
-
\ No newline at end of file +
+ +