-Documentation

This commit is contained in:
James Newton-King
2012-04-23 20:44:36 +12:00
parent edfec3f8b8
commit 97719420bc
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -234,6 +234,9 @@
In situations where a JSON array is not wanted the JsonObjectAttribute can be placed
on a .NET type that implements IEnumerable to force the type to be serialized as
a JSON object instead.</p>
<p>
JsonArrayAttribute has options on it to customize the JsonConverter, type name handling
and reference handling that are applied to collection items.</p>
<p>
Note that if TypeNameHandling or PreserveReferencesHandling has been enabled for
JSON arrays on the serializer then JSON arrays are wrapped it a containing object.
@@ -254,6 +257,9 @@
serializing and properties on the JSON object will be added to the dictionary's
name/values when deserializing. Additional members on the .NET dictionary are ignored
during serialization.</p>
<p>
JsonDictionaryAttribute has options on it to customize the JsonConverter, type name handling
and reference handling that are applied to collection items.</p>
<p>
When deserializing if a member is typed as the interface IDictionary&lt;TKey, TValue&gt;
then it will be deserialized as a Dictionary&lt;TKey, TValue&gt;.</p>