diff --git a/Doc/LINQtoJSON.aml b/Doc/LINQtoJSON.aml index 8e5987f0..faba2f45 100644 --- a/Doc/LINQtoJSON.aml +++ b/Doc/LINQtoJSON.aml @@ -28,19 +28,19 @@ There are a number of different options when it comes to creating JSON using LINQ to JSON. - The first to create objects imperatively. You + The first option is to set values one at a time. You have total control but it is more verbose than other options. - Another option is to create JSON objects declaratively. + Another option is to create JSON objects declaratively using LINQ. Finally you can create a JSON object from a non-JSON type using the Overload:Newtonsoft.Json.Linq.JObject.FromObject method. The example below is creating a JSON object from an anonymous object but any - .NET type can be used with FromObject. + .NET type can be used with FromObject to create JSON. diff --git a/Doc/SerializationGuide.aml b/Doc/SerializationGuide.aml index 9c9531a7..3ddb6434 100644 --- a/Doc/SerializationGuide.aml +++ b/Doc/SerializationGuide.aml @@ -146,8 +146,8 @@ (i.e. aren't lists, dictionaries, dynamic, implement ISerializable, etc) are serialized as JSON objects. 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. Types can also be serialized using opt-in mode. Only properties and fields that have a JsonPropertyAttribute diff --git a/Doc/SerializationSettings.aml b/Doc/SerializationSettings.aml index ed77ea59..c7512f86 100644 --- a/Doc/SerializationSettings.aml +++ b/Doc/SerializationSettings.aml @@ -10,7 +10,7 @@ JsonSerializer has a number of properties on it to customize how it serializes JSON. These can also be used with the methods on JsonConvert via the T:Newtonsoft.Json.JsonSerializerSettings overloads. - +
DateFormatHandling T:Newtonsoft.Json.DateFormatHandling controls how dates are serialized. @@ -322,6 +322,7 @@
+
Serialization Guide diff --git a/Doc/SerializingJSON.aml b/Doc/SerializingJSON.aml index 3ccd7864..da7820b6 100644 --- a/Doc/SerializingJSON.aml +++ b/Doc/SerializingJSON.aml @@ -9,7 +9,8 @@ The quickest method of converting between JSON text and a .NET object is using the T:Newtonsoft.Json.JsonSerializer. - The JsonSerializer converts .NET objects into their JSON equivalent and back again by mapping their properties to each other via name. + The JsonSerializer converts .NET objects into their JSON equivalent and back again by mapping the .NET object property names to the JSON property names + and copies the values for you.
@@ -27,10 +28,6 @@ - - - -
JsonSerializer For more control over how an object is serialized the T:Newtonsoft.Json.JsonSerializer can be used directly.