-Documentation

This commit is contained in:
James Newton-King
2012-07-31 20:48:27 +12:00
parent 2deaac6a0a
commit 0f76d0285d
4 changed files with 9 additions and 11 deletions
+2 -2
View File
@@ -146,8 +146,8 @@
(i.e. aren't lists, dictionaries, dynamic, implement ISerializable, etc)
are serialized as JSON objects.</para>
<para>By default types are serialized in opt-out mode. What that means is all public fields and properties with
getters are automatically serialized to JSON and members that shouldn't be serialized are opted-out using the
JsonIgnoreAttribute. To serialize private members the JsonPropertyAttribute can be placed on private fields and
getters are automatically serialized to JSON and members that shouldn't be serialized are opted-out by placing
JsonIgnoreAttribute on the unwanted properties. To serialize private members the JsonPropertyAttribute can be placed on private fields and
properties or the DefaultMembersSearchFlags can be changed on DefaultContractResolver to change how members are
serialized on all types.</para>
<para>Types can also be serialized using opt-in mode. Only properties and fields that have a JsonPropertyAttribute