diff --git a/CKAN-core.csproj b/CKAN-core.csproj
index 3bb74b4..bb03500 100644
--- a/CKAN-core.csproj
+++ b/CKAN-core.csproj
@@ -24,8 +24,13 @@
packages\log4net.2.0.3\lib\net40-full\log4net.dll
-
- packages\Newtonsoft.Json.6.0.5\lib\net40\Newtonsoft.Json.dll
+
+ ..\packages\Newtonsoft.Json.6.0.8\lib\net40\Newtonsoft.Json.dll
+ True
+
+
+ ..\packages\Newtonsoft.Json.Schema.1.0.8\lib\net40\Newtonsoft.Json.Schema.dll
+ True
packages\NUnit.2.6.3\lib\nunit.framework.dll
@@ -79,8 +84,11 @@
+
+ Always
+
-
+
\ No newline at end of file
diff --git a/CKAN.schema b/CKAN.schema
new file mode 100644
index 0000000..ed16890
--- /dev/null
+++ b/CKAN.schema
@@ -0,0 +1,310 @@
+{
+ "$schema" : "http://json-schema.org/draft-04/schema#",
+ "title" : "CKAN JSON Schema",
+ "description" : "Schema for validating CKAN meta files",
+ "type" : "object",
+ "properties": {
+ "spec_version": {
+ "description" : "Version of the CKAN spec this document uses",
+ "oneOf" : [
+ {
+ "type" : "integer",
+ "description" : "The integer '1' is special cased",
+ "minimum" : 1,
+ "maximum" : 1
+ },
+ {
+ "type" : "string",
+ "description" : "A vx.x string",
+ "pattern" : "^v[0-9]+\\.[0-9]+$"
+ }
+ ]
+ },
+ "name" : {
+ "description" : "Human readable name of the mod",
+ "type" : "string"
+ },
+ "identifier" : {
+ "description" : "Unique identifier for this mod.",
+ "$ref" : "#/definitions/identifier"
+ },
+ "kind" : {
+ "description" : "Package type, defaults to package.",
+ "enum" : [ "package", "metapackage" ]
+ },
+ "abstract" : {
+ "description" : "Short description of the mod",
+ "type" : "string"
+ },
+ "description" : {
+ "description" : "Longer description of the mod",
+ "type" : "string"
+ },
+ "comment" : {
+ "description" : "Free-form comment. Not displayed to users.",
+ "type" : "string"
+ },
+ "author" : {
+ "description" : "Author, or list of authors.",
+ "oneOf" : [
+ { "type" : "string" },
+ {
+ "type" : "array",
+ "items" : { "type" : "string" },
+ "uniqueItems" : true
+ }
+ ]
+ },
+ "download" : {
+ "description" : "URL where mod can be downloaded by tools",
+ "type" : "string",
+ "format" : "uri"
+ },
+ "download_size" : {
+ "description" : "The size of the download in bytes",
+ "type" : "integer"
+ },
+ "license" : {
+ "description" : "Machine readable license, or array of licenses",
+ "$ref" : "#/definitions/licenses"
+ },
+ "version" : {
+ "description" : "Version of the mod. Drop the leading v",
+ "$ref" : "#/definitions/version"
+ },
+ "release_status" : {
+ "description" : "Optional release status",
+ "enum" : [ "stable", "testing", "development" ]
+ },
+ "ksp_version" : {
+ "description" : "Optional target KSP version",
+ "$ref" : "#/definitions/ksp_version"
+ },
+ "ksp_version_min" : {
+ "description" : "Optional minimum KSP version",
+ "$ref" : "#/definitions/ksp_version"
+ },
+ "ksp_version_max" : {
+ "description" : "Optional maximum KSP version",
+ "$ref" : "#/definitions/ksp_version"
+ },
+ "depends" : {
+ "description" : "Optional list of dependencies",
+ "$ref" : "#/definitions/relationship"
+ },
+ "recommends" : {
+ "description" : "Optional list of recommended mods",
+ "$ref" : "#/definitions/relationship"
+ },
+ "suggests" : {
+ "description" : "Optional list of recommended, but not essential mods",
+ "$ref" : "#/definitions/relationship"
+ },
+ "supports" : {
+ "description" : "Optional list of supported mods",
+ "$ref" : "#/definitions/relationship"
+ },
+ "conflicts" : {
+ "description" : "Optional list of conflicting mods",
+ "$ref" : "#/definitions/relationship"
+ },
+ "provides" : {
+ "description" : "A list of virtual packages this mod provides",
+ "type" : "array",
+ "items" : { "type" : "string" },
+ "uniqueItems" : true
+ },
+ "resources" : {
+ "description" : "Additional resources",
+ "type" : "object",
+ "properties" : {
+ "homepage" : {
+ "description" : "Mod homepage",
+ "type" : "string",
+ "format" : "uri"
+ },
+ "bugtracker" : {
+ "description" : "Mod bugtracker",
+ "type" : "string",
+ "format" : "uri"
+ },
+ "license" : {
+ "description" : "Mod license",
+ "type" : "string",
+ "format" : "uri"
+ },
+ "repository" : {
+ "description" : "Mod repository",
+ "type" : "string",
+ "format" : "uri"
+ },
+ "ci" : {
+ "description" : "Continuous Integration",
+ "type" : "string",
+ "format" : "uri"
+ },
+ "kerbalstuff" : {
+ "description" : "Project on KerbalStuff",
+ "type" : "string",
+ "format" : "uri"
+ },
+ "manual" : {
+ "description" : "Mod's manual",
+ "type" : "string",
+ "format" : "uri"
+ }
+ }
+ },
+ "install" : {
+ "description" : "List of install directives",
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "file" : {
+ "description" : "Path to file to install",
+ "type" : "string"
+ },
+ "find" : {
+ "description" : "A directory to find for installation",
+ "type" : "string"
+ },
+ "install_to" : {
+ "description" : "Where file should be installed to",
+ "$ref" : "#/definitions/install_to"
+ },
+ "filter" : {
+ "description" : "List of files and directories that should be filtered from the install",
+ "$ref" : "#/definitions/one_or_more_strings"
+ },
+ "filter_regexp" : {
+ "description" : "List of regexps that should filter files from this install",
+ "$ref" : "#/definitions/one_or_more_strings"
+ }
+ },
+ "required" : [ "install_to" ],
+ "comment" : "One must have either file or find, is there a JSON Schema friendly way of specifying that?"
+ }
+ }
+ },
+ "required" : [
+ "spec_version",
+ "name",
+ "abstract",
+ "identifier",
+ "download",
+ "license",
+ "version"
+ ],
+ "definitions" : {
+ "identifier" : {
+ "description" : "Unique identifier for this mod.",
+ "type" : "string",
+ "pattern" : "^[A-Za-z][A-Za-z0-9-]*$"
+ },
+ "version" : {
+ "description" : "A verison string",
+ "type" : "string"
+ },
+ "ksp_version" : {
+ "description" : "A version of KSP",
+ "type" : "string",
+ "pattern" : "^(any|[0-9]+\\.[0-9]+(\\.[0-9]+)?)$"
+ },
+ "relationship" : {
+ "description" : "A relationship to a list of mods",
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "name" : {
+ "description" : "Identifier of the mod",
+ "$ref" : "#/definitions/identifier"
+ },
+ "version" : {
+ "description" : "Optional version",
+ "$ref" : "#/definitions/version"
+ },
+ "min_version" : {
+ "description" : "Optional minimum version",
+ "$ref" : "#/definitions/version"
+ },
+ "max_version" : {
+ "description" : "Optional maximum version",
+ "$ref" : "#/definitions/version"
+ }
+ },
+ "required" : [ "name" ]
+ }
+ },
+ "install_to" : {
+ "description" : "Where file should be installed to. As of v1.2, GameData may take a path",
+ "oneOf" : [
+ {
+ "description" : "Spec version 1 targets",
+ "enum" : [ "GameData", "Ships", "GameRoot", "Tutorial" ]
+ },
+ {
+ "description" : "Spec v1.2 GameData path",
+ "type" : "string",
+ "pattern" : "^GameData/"
+ }
+ ]
+ },
+ "license" : {
+ "description" : "A license.",
+ "enum" : [
+ "public-domain",
+ "Apache", "Apache-1.0", "Apache-2.0",
+ "Artistic", "Artistic-1.0", "Artistic-2.0",
+ "BSD-2-clause", "BSD-3-clause", "BSD-4-clause",
+ "ISC",
+ "CC-BY", "CC-BY-1.0", "CC-BY-2.0", "CC-BY-2.5", "CC-BY-3.0", "CC-BY-4.0",
+ "CC-BY-SA", "CC-BY-SA-1.0", "CC-BY-SA-2.0", "CC-BY-SA-2.5", "CC-BY-SA-3.0", "CC-BY-SA-4.0",
+ "CC-BY-NC", "CC-BY-NC-1.0", "CC-BY-NC-2.0", "CC-BY-NC-2.5", "CC-BY-NC-3.0", "CC-BY-NC-4.0",
+ "CC-BY-NC-SA", "CC-BY-NC-SA-1.0", "CC-BY-NC-SA-2.0", "CC-BY-NC-SA-2.5", "CC-BY-NC-SA-3.0", "CC-BY-NC-SA-4.0",
+ "CC-BY-NC-ND", "CC-BY-NC-ND-1.0", "CC-BY-NC-ND-2.0", "CC-BY-NC-ND-2.5", "CC-BY-NC-ND-3.0", "CC-BY-NC-ND-4.0",
+ "CC0",
+ "CDDL", "CPL",
+ "EFL-1.0", "EFL-2.0",
+ "Expat", "MIT",
+ "GPL-1.0", "GPL-2.0", "GPL-3.0",
+ "LGPL-2.0", "LGPL-2.1", "LGPL-3.0",
+ "GFDL-1.0", "GFDL-1.1", "GFDL-1.2", "GFDL-1.3",
+ "GFDL-NIV-1.0", "GFDL-NIV-1.1", "GFDL-NIV-1.2", "GFDL-NIV-1.3",
+ "LPPL-1.0", "LPPL-1.1", "LPPL-1.2", "LPPL-1.3c",
+ "MPL-1.1",
+ "Perl",
+ "Python-2.0",
+ "QPL-1.0",
+ "W3C",
+ "Zlib",
+ "Zope",
+ "WTFPL",
+ "open-source", "restricted", "unrestricted", "unknown"
+ ]
+ },
+ "licenses" : {
+ "description" : "A license, or array of licenses",
+ "anyOf" : [
+ { "$ref" : "#/definitions/license" },
+ {
+ "type" : "array",
+ "items" : { "$ref" : "#/definitions/license" },
+ "uniqueItems" : true
+ }
+ ]
+ },
+ "one_or_more_strings" : {
+ "description" : "One or more strings",
+ "oneOf" : [
+ { "type" : "string" },
+ {
+ "type" : "array",
+ "items" : { "type" : "string" },
+ "uniqueItems" : true
+ }
+ ]
+ }
+ }
+}
diff --git a/Tests/DATA/CKAN-meta-testkan.tar.gz b/Tests/DATA/CKAN-meta-testkan.tar.gz
index 45bc58c..ad5fdbb 100644
Binary files a/Tests/DATA/CKAN-meta-testkan.tar.gz and b/Tests/DATA/CKAN-meta-testkan.tar.gz differ
diff --git a/Tests/DATA/CKAN-meta-testkan.zip b/Tests/DATA/CKAN-meta-testkan.zip
index d5c5c0a..87e9e98 100644
Binary files a/Tests/DATA/CKAN-meta-testkan.zip and b/Tests/DATA/CKAN-meta-testkan.zip differ
diff --git a/Tests/TestData.cs b/Tests/TestData.cs
index 593a3b2..5addb40 100644
--- a/Tests/TestData.cs
+++ b/Tests/TestData.cs
@@ -71,9 +71,7 @@ public static string DogeCoinFlag_101_bugged()
}
],
""resources"": {
- ""kerbalstuff"": {
- ""url"": ""https://kerbalstuff.com/mod/269/Dogecoin%20Flag""
- },
+ ""kerbalstuff"": ""https://kerbalstuff.com/mod/269/Dogecoin%20Flag"",
""homepage"": ""https://www.reddit.com/r/dogecoin/comments/1tdlgg/i_made_a_more_accurate_dogecoin_and_a_ksp_flag/""
},
""name"": ""Dogecoin Flag"",
@@ -112,9 +110,7 @@ public static string DogeCoinFlag_101()
}
],
""resources"": {
- ""kerbalstuff"": {
- ""url"": ""https://kerbalstuff.com/mod/269/Dogecoin%20Flag""
- },
+ ""kerbalstuff"": ""https://kerbalstuff.com/mod/269/Dogecoin%20Flag"",
""homepage"": ""https://www.reddit.com/r/dogecoin/comments/1tdlgg/i_made_a_more_accurate_dogecoin_and_a_ksp_flag/""
},
""name"": ""Dogecoin Flag"",
diff --git a/Types/Module.cs b/Types/Module.cs
index 18ef044..f8be292 100644
--- a/Types/Module.cs
+++ b/Types/Module.cs
@@ -2,10 +2,13 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
+using System.Reflection;
using System.Runtime.Serialization;
+using System.Text.RegularExpressions;
using log4net;
using Newtonsoft.Json;
-using System.Text.RegularExpressions;
+using Newtonsoft.Json.Linq;
+using Newtonsoft.Json.Schema;
namespace CKAN
{
@@ -37,7 +40,7 @@ public class ResourcesDescriptor
[JsonObject(MemberSerialization.OptIn)]
public class Module
{
- private static readonly ILog log = LogManager.GetLogger(typeof(Module));
+ private static readonly ILog log = LogManager.GetLogger(typeof (Module));
// identifier, license, and version are always required, so we know
// what we've got.
@@ -168,7 +171,7 @@ private void DeSerialisationFixes(StreamingContext like_i_could_care)
if (license == null)
{
- license = new License ("unknown");
+ license = new License("unknown");
}
if (@abstract == null)
@@ -246,17 +249,14 @@ public bool DoesProvide(string identifier)
public bool IsMetapackage
{
- get
- {
- return (!string.IsNullOrEmpty(this.kind) && this.kind == "metapackage");
- }
+ get { return (!string.IsNullOrEmpty(this.kind) && this.kind == "metapackage"); }
}
-
}
public class CkanModule : Module
{
- private static readonly ILog log = LogManager.GetLogger(typeof(CkanModule));
+ private static readonly ILog log = LogManager.GetLogger(typeof (CkanModule));
+
private static readonly string[] required_fields =
{
"spec_version",
@@ -267,43 +267,32 @@ public class CkanModule : Module
"license",
"version"
};
+
// Only CKAN modules can have install and bundle instructions.
[JsonProperty("install")] public ModuleInstallDescriptor[] install;
[JsonProperty("spec_version", Required = Required.Always)] public Version spec_version;
- private static bool validate_json_against_schema(string json)
- {
+ static CkanModule()
+ {
+ var assembly = Assembly.GetExecutingAssembly();
+ using (var stream = assembly.GetManifestResourceStream(SchemaPath))
+ using (var reader = new StreamReader(stream))
+ {
+ var result = reader.ReadToEnd();
+ MetadataSchema = JSchema.Parse(result);
+ }
+ }
- log.Debug("In-client JSON schema validation unimplemented.");
- return true;
- // due to Newtonsoft Json not supporting v4 of the standard, we can't actually do this :(
-
- // if (metadata_schema == null)
- // {
- // string schema = "";
- //
- // try
- // {
- // schema = File.ReadAllText(metadata_schema_path);
- // }
- // catch (Exception)
- // {
- // if (!metadata_schema_missing_warning_fired)
- // {
- // User.Error("Couldn't open metadata schema at \"{0}\", will not validate metadata files",
- // metadata_schema_path);
- // metadata_schema_missing_warning_fired = true;
- // }
- //
- // return true;
- // }
- //
- // metadata_schema = JsonSchema.Parse(schema);
- // }
- //
- // JObject obj = JObject.Parse(json);
- // return obj.IsValid(metadata_schema);
+ private static readonly string SchemaPath = "CKAN.CKAN.schema";
+ private static readonly JSchema MetadataSchema;
+
+ private static IList ValidateAgainstSchema(string json)
+ {
+ JObject obj = JObject.Parse(json);
+ IList errors;
+ obj.IsValid(MetadataSchema, out errors);
+ return errors;
}
///
@@ -324,7 +313,8 @@ public static CkanModule FromIDandVersion(Registry registry, string mod, KSPVers
module = registry.GetModuleByVersion(ident, version);
if (module == null)
- throw new ModuleNotFoundKraken(ident, version, string.Format("Cannot install {0}, version {1} not available", ident, version));
+ throw new ModuleNotFoundKraken(ident, version,
+ string.Format("Cannot install {0}, version {1} not available", ident, version));
}
else
module = registry.LatestAvailable(mod, ksp_version);
@@ -355,11 +345,14 @@ public static void ToFile(CkanModule module, string filename)
///
public static CkanModule FromJson(string json)
{
- if (!validate_json_against_schema(json))
+ var errors = ValidateAgainstSchema(json);
+ if (errors.Any())
{
- throw new BadMetadataKraken(null, "Validation against spec failed");
+ var message = "Vailation againt the schema failed.\n" + String.Join("\n ", errors);
+ throw new BadMetadataKraken(null, message);
}
+
CkanModule newModule;
try
@@ -379,8 +372,8 @@ public static CkanModule FromJson(string json)
"{0} requires CKAN {1}, we can't read it.",
newModule,
newModule.spec_version
- )
- );
+ )
+ );
}
// Check everything in the spec if defined.
@@ -404,12 +397,13 @@ public static CkanModule FromJson(string json)
// All good! Return module
return newModule;
}
+
public override bool Equals(object obj)
{
var other = obj as Module;
return other != null
- ? identifier.Equals(other.identifier) && version.Equals(other.version)
- : base.Equals(obj);
+ ? identifier.Equals(other.identifier) && version.Equals(other.version)
+ : base.Equals(obj);
}
public override int GetHashCode()
@@ -480,4 +474,4 @@ public override string ToString()
return string.Format("[InvalidModuleAttributesException] {0} in {1}", why, modname);
}
}
-}
+}
\ No newline at end of file
diff --git a/packages.config b/packages.config
index 8f2c6cd..bc49747 100644
--- a/packages.config
+++ b/packages.config
@@ -1,7 +1,8 @@
-
+
-
-
-
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/Newtonsoft.Json.6.0.5/Newtonsoft.Json.6.0.5.nupkg b/packages/Newtonsoft.Json.6.0.5/Newtonsoft.Json.6.0.5.nupkg
deleted file mode 100644
index a019e73..0000000
Binary files a/packages/Newtonsoft.Json.6.0.5/Newtonsoft.Json.6.0.5.nupkg and /dev/null differ
diff --git a/packages/Newtonsoft.Json.6.0.5/lib/net20/Newtonsoft.Json.dll b/packages/Newtonsoft.Json.6.0.5/lib/net20/Newtonsoft.Json.dll
deleted file mode 100644
index aa190de..0000000
Binary files a/packages/Newtonsoft.Json.6.0.5/lib/net20/Newtonsoft.Json.dll and /dev/null differ
diff --git a/packages/Newtonsoft.Json.6.0.5/lib/net35/Newtonsoft.Json.dll b/packages/Newtonsoft.Json.6.0.5/lib/net35/Newtonsoft.Json.dll
deleted file mode 100644
index c37ad29..0000000
Binary files a/packages/Newtonsoft.Json.6.0.5/lib/net35/Newtonsoft.Json.dll and /dev/null differ
diff --git a/packages/Newtonsoft.Json.6.0.5/lib/net40/Newtonsoft.Json.dll b/packages/Newtonsoft.Json.6.0.5/lib/net40/Newtonsoft.Json.dll
deleted file mode 100644
index 8181184..0000000
Binary files a/packages/Newtonsoft.Json.6.0.5/lib/net40/Newtonsoft.Json.dll and /dev/null differ
diff --git a/packages/Newtonsoft.Json.6.0.5/lib/net45/Newtonsoft.Json.dll b/packages/Newtonsoft.Json.6.0.5/lib/net45/Newtonsoft.Json.dll
deleted file mode 100644
index 740086d..0000000
Binary files a/packages/Newtonsoft.Json.6.0.5/lib/net45/Newtonsoft.Json.dll and /dev/null differ
diff --git a/packages/Newtonsoft.Json.6.0.5/lib/netcore45/Newtonsoft.Json.dll b/packages/Newtonsoft.Json.6.0.5/lib/netcore45/Newtonsoft.Json.dll
deleted file mode 100644
index 32f143a..0000000
Binary files a/packages/Newtonsoft.Json.6.0.5/lib/netcore45/Newtonsoft.Json.dll and /dev/null differ
diff --git a/packages/Newtonsoft.Json.6.0.5/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll b/packages/Newtonsoft.Json.6.0.5/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll
deleted file mode 100644
index db426c7..0000000
Binary files a/packages/Newtonsoft.Json.6.0.5/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll and /dev/null differ
diff --git a/packages/Newtonsoft.Json.6.0.5/lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.dll b/packages/Newtonsoft.Json.6.0.5/lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.dll
deleted file mode 100644
index 8b6147d..0000000
Binary files a/packages/Newtonsoft.Json.6.0.5/lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.dll and /dev/null differ
diff --git a/packages/Newtonsoft.Json.6.0.8/Newtonsoft.Json.6.0.8.nupkg b/packages/Newtonsoft.Json.6.0.8/Newtonsoft.Json.6.0.8.nupkg
new file mode 100644
index 0000000..e95393d
Binary files /dev/null and b/packages/Newtonsoft.Json.6.0.8/Newtonsoft.Json.6.0.8.nupkg differ
diff --git a/packages/Newtonsoft.Json.6.0.8/lib/net20/Newtonsoft.Json.dll b/packages/Newtonsoft.Json.6.0.8/lib/net20/Newtonsoft.Json.dll
new file mode 100644
index 0000000..475e312
Binary files /dev/null and b/packages/Newtonsoft.Json.6.0.8/lib/net20/Newtonsoft.Json.dll differ
diff --git a/packages/Newtonsoft.Json.6.0.5/lib/net20/Newtonsoft.Json.xml b/packages/Newtonsoft.Json.6.0.8/lib/net20/Newtonsoft.Json.xml
similarity index 96%
rename from packages/Newtonsoft.Json.6.0.5/lib/net20/Newtonsoft.Json.xml
rename to packages/Newtonsoft.Json.6.0.8/lib/net20/Newtonsoft.Json.xml
index 4631fda..159260e 100644
--- a/packages/Newtonsoft.Json.6.0.5/lib/net20/Newtonsoft.Json.xml
+++ b/packages/Newtonsoft.Json.6.0.8/lib/net20/Newtonsoft.Json.xml
@@ -23,12 +23,12 @@
- Represents a reader that provides fast, non-cached, forward-only access to serialized Json data.
+ Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
- Represents a reader that provides fast, non-cached, forward-only access to serialized Json data.
+ Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
@@ -56,9 +56,9 @@
- Reads the next JSON token from the stream as a .
+ Reads the next JSON token from the stream as a [].
- A or a null reference if the next JSON token is null. This method will return null at the end of an array.
+ A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
@@ -297,10 +297,10 @@
- Reads the next JSON token from the stream as a .
+ Reads the next JSON token from the stream as a [].
- A or a null reference if the next JSON token is null. This method will return null at the end of an array.
+ A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
@@ -369,7 +369,7 @@
- Represents a writer that provides a fast, non-cached, forward-only way of generating Json data.
+ Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
@@ -449,6 +449,22 @@
The to read the token from.
A flag indicating whether the current token's children should be written.
+
+
+ Writes the token and its value.
+
+ The to write.
+
+ The value to write.
+ A value is only required for tokens that have an associated value, e.g. the property name for .
+ A null value can be passed to the method for token's that don't have a value, e.g. .
+
+
+
+ Writes the token.
+
+ The to write.
+
Writes the specified end token.
@@ -692,9 +708,9 @@
- Writes a value.
+ Writes a [] value.
- The value to write.
+ The [] value to write.
@@ -968,9 +984,9 @@
- Writes a value.
+ Writes a [] value.
- The value to write.
+ The [] value to write.
@@ -992,7 +1008,7 @@
- Writes a value that represents a BSON object id.
+ Writes a [] value that represents a BSON object id.
The Object ID value to write.
@@ -1568,6 +1584,17 @@
The collection's items converter.
+
+
+ The parameter list to use when constructing the JsonConverter described by ItemConverterType.
+ If null, the default constructor is used.
+ When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number,
+ order, and type of these parameters.
+
+
+ [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
+
Gets or sets a value that indicates whether to preserve object references.
@@ -1760,6 +1787,26 @@
The that will be used to filter the trace messages passed to the writer.
+
+
+ Provides methods to get attributes.
+
+
+
+
+ Returns a collection of all of the attributes, or an empty collection if there are no attributes.
+
+ When true, look up the hierarchy chain for the inherited custom attribute.
+ A collection of s, or an empty collection.
+
+
+
+ Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
+
+ The type of the attributes.
+ When true, look up the hierarchy chain for the inherited custom attribute.
+ A collection of s, or an empty collection.
+
Contract details for a used by the .
@@ -1939,6 +1986,31 @@
The that will be used to filter the trace messages passed to the writer.
+
+
+ Provides methods to get attributes from a , , or .
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Returns a collection of all of the attributes, or an empty collection if there are no attributes.
+
+ When true, look up the hierarchy chain for the inherited custom attribute.
+ A collection of s, or an empty collection.
+
+
+
+ Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
+
+ The type of the attributes.
+ When true, look up the hierarchy chain for the inherited custom attribute.
+ A collection of s, or an empty collection.
+
Provides an interface to enable a class to return line and position information.
@@ -3194,6 +3266,12 @@
A collection of the ancestor tokens of this token.
+
+
+ Returns a collection of tokens that contain this token, and the ancestors of this token.
+
+ A collection of tokens that contain this token, and the ancestors of this token.
+
Returns a collection of the sibling tokens after this token, in document order.
@@ -3473,7 +3551,7 @@
- Performs an explicit conversion from to .
+ Performs an explicit conversion from to [].
The value.
The result of the conversion.
@@ -3704,7 +3782,7 @@
- Performs an implicit conversion from to .
+ Performs an implicit conversion from [] to .
The value to create a from.
The initialized with the specified value.
@@ -3868,6 +3946,52 @@
A new instance of the .
+
+
+ Adds an object to the annotation list of this .
+
+ The annotation to add.
+
+
+
+ Get the first annotation object of the specified type from this .
+
+ The type of the annotation to retrieve.
+ The first annotation object that matches the specified type, or null if no annotation is of the specified type.
+
+
+
+ Gets the first annotation object of the specified type from this .
+
+ The of the annotation to retrieve.
+ The first annotation object that matches the specified type, or null if no annotation is of the specified type.
+
+
+
+ Gets a collection of annotations of the specified type for this .
+
+ The type of the annotations to retrieve.
+ An that contains the annotations for this .
+
+
+
+ Gets a collection of annotations of the specified type for this .
+
+ The of the annotations to retrieve.
+ An of that contains the annotations that match the specified type for this .
+
+
+
+ Removes the annotations of the specified type from this .
+
+ The type of annotations to remove.
+
+
+
+ Removes the annotations of the specified type from this .
+
+ The of annotations to remove.
+
Gets a comparer that can compare two tokens for value equality.
@@ -4338,12 +4462,25 @@
Type of the converter.
+
+
+ Initializes a new instance of the class.
+
+ Type of the converter.
+ Parameter list to use when constructing the JsonConverter. Can be null.
+
Gets the type of the converter.
The type of the converter.
+
+
+ The parameter list to use when constructing the JsonConverter described by ConverterType.
+ If null, the default constructor is used.
+
+
Instructs the how to serialize the object.
@@ -4573,10 +4710,10 @@
- Reads the next JSON token from the stream as a .
+ Reads the next JSON token from the stream as a [].
- A or a null reference if the next JSON token is null.
+ A [] or a null reference if the next JSON token is null.
@@ -4868,10 +5005,10 @@
- Reads the next JSON token from the stream as a .
+ Reads the next JSON token from the stream as a [].
- A or a null reference if the next JSON token is null. This method will return null at the end of an array.
+ A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
@@ -4949,6 +5086,17 @@
The collection's items converter.
+
+
+ The parameter list to use when constructing the JsonConverter described by ItemConverterType.
+ If null, the default constructor is used.
+ When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number,
+ order, and type of these parameters.
+
+
+ [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
+
Gets or sets the null value handling used when serializing this property.
@@ -5030,7 +5178,7 @@
- Represents a writer that provides a fast, non-cached, forward-only way of generating Json data.
+ Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
@@ -5226,9 +5374,9 @@
- Writes a value.
+ Writes a [] value.
- The value to write.
+ The [] value to write.
@@ -5570,6 +5718,15 @@
The string delimiter character.
A JSON string representation of the .
+
+
+ Converts the to its JSON string representation.
+
+ The value to convert.
+ The string delimiter character.
+ The string escape handling.
+ A JSON string representation of the .
+
Converts the to its JSON string representation.
@@ -6193,7 +6350,15 @@
The type of the objects in source, constrained to .
An of that contains the source collection.
- An of that contains the ancestors of every node in the source collection.
+ An of that contains the ancestors of every token in the source collection.
+
+
+
+ Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection.
+
+ The type of the objects in source, constrained to .
+ An of that contains the source collection.
+ An of that contains every token in the source collection, the ancestors of every token in the source collection.
@@ -6201,7 +6366,15 @@
The type of the objects in source, constrained to .
An of that contains the source collection.
- An of that contains the descendants of every node in the source collection.
+ An of that contains the descendants of every token in the source collection.
+
+
+
+ Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection.
+
+ The type of the objects in source, constrained to .
+ An of that contains the source collection.
+ An of that contains every token in the source collection, and the descendants of every token in the source collection.
@@ -6216,14 +6389,14 @@
An of that contains the source collection.
The token key.
- An of that contains the values of every node in the source collection with the given key.
+ An of that contains the values of every token in the source collection with the given key.
Returns a collection of child values of every object in the source collection.
An of that contains the source collection.
- An of that contains the values of every node in the source collection.
+ An of that contains the values of every token in the source collection.
@@ -6232,7 +6405,7 @@
The type to convert the values to.
An of that contains the source collection.
The token key.
- An that contains the converted values of every node in the source collection with the given key.
+ An that contains the converted values of every token in the source collection with the given key.
@@ -6240,7 +6413,7 @@
The type to convert the values to.
An of that contains the source collection.
- An that contains the converted values of every node in the source collection.
+ An that contains the converted values of every token in the source collection.
@@ -6265,7 +6438,7 @@
The source collection type.
An of that contains the source collection.
- An of that contains the values of every node in the source collection.
+ An of that contains the values of every token in the source collection.
@@ -6274,7 +6447,7 @@
An of that contains the source collection.
The type to convert the values to.
The source collection type.
- An that contains the converted values of every node in the source collection.
+ An that contains the converted values of every token in the source collection.
@@ -6336,6 +6509,12 @@
An containing the descendant tokens of the .
+
+
+ Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order.
+
+ An containing this token, and all the descendant tokens of the .
+
Adds the specified content as children of this .
@@ -6526,6 +6705,15 @@
An object that can be used to iterate through the collection.
+
+
+ Determines whether the specified is equal to this instance.
+
+ The to compare with this instance.
+
+ true if the specified is equal to this instance; otherwise, false.
+
+
Determines whether the specified is equal to this instance.
@@ -7008,7 +7196,7 @@
- Represents a reader that provides fast, non-cached, forward-only access to serialized Json data.
+ Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
@@ -7019,10 +7207,10 @@
- Reads the next JSON token from the stream as a .
+ Reads the next JSON token from the stream as a [].
- A or a null reference if the next JSON token is null. This method will return null at the end of an array.
+ A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
@@ -7057,6 +7245,11 @@
true if the next token was read successfully; false if there are no more tokens to read.
+
+
+ Gets the at the reader's current position.
+
+
Gets the path of the current JSON token.
@@ -7064,7 +7257,7 @@
- Represents a writer that provides a fast, non-cached, forward-only way of generating Json data.
+ Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
@@ -7237,9 +7430,9 @@
- Writes a value.
+ Writes a [] value.
- The value to write.
+ The [] value to write.
@@ -7259,6 +7452,11 @@
The value to write.
+
+
+ Gets the at the writer's current position.
+
+
Gets the token being writen.
@@ -7624,9 +7822,9 @@
If set to true the will use a cached shared with other resolvers of the same type.
- Sharing the cache will significantly performance because expensive reflection will only happen once but could cause unexpected
- behavior if different instances of the resolver are suppose to produce different results. When set to false it is highly
- recommended to reuse instances with the .
+ Sharing the cache will significantly improve performance with multiple resolver instances because expensive reflection will only
+ happen once. This setting can cause unexpected behavior if different instances of the resolver are suppose to produce different
+ results. When set to false it is highly recommended to reuse instances with the .
@@ -8091,6 +8289,12 @@
The that will get and set the during serialization.
+
+
+ Gets or sets the for this property.
+
+ The for this property.
+
Gets or sets the type of the property.
@@ -8759,6 +8963,21 @@
The underlying type for the contract.
+
+
+ Lookup and create an instance of the JsonConverter type described by the argument.
+
+ The JsonConverter type to create.
+ Optional arguments to pass to an initializing constructor of the JsonConverter.
+ If null, the default constructor is used.
+
+
+
+ Create a factory function that can be used to create instances of a JsonConverter described by the
+ argument type. The returned function can then be used to either invoke the converter's default ctor, or any
+ parameterized constructors by way of an object array.
+
+
Represents a method that constructs an object.
diff --git a/packages/Newtonsoft.Json.6.0.8/lib/net35/Newtonsoft.Json.dll b/packages/Newtonsoft.Json.6.0.8/lib/net35/Newtonsoft.Json.dll
new file mode 100644
index 0000000..0a61735
Binary files /dev/null and b/packages/Newtonsoft.Json.6.0.8/lib/net35/Newtonsoft.Json.dll differ
diff --git a/packages/Newtonsoft.Json.6.0.5/lib/net35/Newtonsoft.Json.xml b/packages/Newtonsoft.Json.6.0.8/lib/net35/Newtonsoft.Json.xml
similarity index 96%
rename from packages/Newtonsoft.Json.6.0.5/lib/net35/Newtonsoft.Json.xml
rename to packages/Newtonsoft.Json.6.0.8/lib/net35/Newtonsoft.Json.xml
index a1bfe41..3281415 100644
--- a/packages/Newtonsoft.Json.6.0.5/lib/net35/Newtonsoft.Json.xml
+++ b/packages/Newtonsoft.Json.6.0.8/lib/net35/Newtonsoft.Json.xml
@@ -6,12 +6,12 @@
- Represents a reader that provides fast, non-cached, forward-only access to serialized Json data.
+ Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
- Represents a reader that provides fast, non-cached, forward-only access to serialized Json data.
+ Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
@@ -39,9 +39,9 @@
- Reads the next JSON token from the stream as a .
+ Reads the next JSON token from the stream as a [].
- A or a null reference if the next JSON token is null. This method will return null at the end of an array.
+ A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
@@ -286,10 +286,10 @@
- Reads the next JSON token from the stream as a .
+ Reads the next JSON token from the stream as a [].
- A or a null reference if the next JSON token is null. This method will return null at the end of an array.
+ A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
@@ -366,7 +366,7 @@
- Represents a writer that provides a fast, non-cached, forward-only way of generating Json data.
+ Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
@@ -446,6 +446,22 @@
The to read the token from.
A flag indicating whether the current token's children should be written.
+
+
+ Writes the token and its value.
+
+ The to write.
+
+ The value to write.
+ A value is only required for tokens that have an associated value, e.g. the property name for .
+ A null value can be passed to the method for token's that don't have a value, e.g. .
+
+
+
+ Writes the token.
+
+ The to write.
+
Writes the specified end token.
@@ -701,9 +717,9 @@
- Writes a value.
+ Writes a [] value.
- The value to write.
+ The [] value to write.
@@ -983,9 +999,9 @@
- Writes a value.
+ Writes a [] value.
- The value to write.
+ The [] value to write.
@@ -1007,7 +1023,7 @@
- Writes a value that represents a BSON object id.
+ Writes a [] value that represents a BSON object id.
The Object ID value to write.
@@ -1637,6 +1653,17 @@
The collection's items converter.
+
+
+ The parameter list to use when constructing the JsonConverter described by ItemConverterType.
+ If null, the default constructor is used.
+ When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number,
+ order, and type of these parameters.
+
+
+ [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
+
Gets or sets a value that indicates whether to preserve object references.
@@ -1918,6 +1945,26 @@
The that will be used to filter the trace messages passed to the writer.
+
+
+ Provides methods to get attributes.
+
+
+
+
+ Returns a collection of all of the attributes, or an empty collection if there are no attributes.
+
+ When true, look up the hierarchy chain for the inherited custom attribute.
+ A collection of s, or an empty collection.
+
+
+
+ Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
+
+ The type of the attributes.
+ When true, look up the hierarchy chain for the inherited custom attribute.
+ A collection of s, or an empty collection.
+
Contract details for a used by the .
@@ -2097,6 +2144,31 @@
The that will be used to filter the trace messages passed to the writer.
+
+
+ Provides methods to get attributes from a , , or .
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Returns a collection of all of the attributes, or an empty collection if there are no attributes.
+
+ When true, look up the hierarchy chain for the inherited custom attribute.
+ A collection of s, or an empty collection.
+
+
+
+ Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
+
+ The type of the attributes.
+ When true, look up the hierarchy chain for the inherited custom attribute.
+ A collection of s, or an empty collection.
+
Provides an interface to enable a class to return line and position information.
@@ -2195,6 +2267,12 @@
A collection of the ancestor tokens of this token.
+
+
+ Returns a collection of tokens that contain this token, and the ancestors of this token.
+
+ A collection of tokens that contain this token, and the ancestors of this token.
+
Returns a collection of the sibling tokens after this token, in document order.
@@ -2488,7 +2566,7 @@
- Performs an explicit conversion from to .
+ Performs an explicit conversion from to [].
The value.
The result of the conversion.
@@ -2733,7 +2811,7 @@
- Performs an implicit conversion from to .
+ Performs an implicit conversion from [] to .
The value to create a from.
The initialized with the specified value.
@@ -2897,6 +2975,52 @@
A new instance of the .
+
+
+ Adds an object to the annotation list of this .
+
+ The annotation to add.
+
+
+
+ Get the first annotation object of the specified type from this .
+
+ The type of the annotation to retrieve.
+ The first annotation object that matches the specified type, or null if no annotation is of the specified type.
+
+
+
+ Gets the first annotation object of the specified type from this .
+
+ The of the annotation to retrieve.
+ The first annotation object that matches the specified type, or null if no annotation is of the specified type.
+
+
+
+ Gets a collection of annotations of the specified type for this .
+
+ The type of the annotations to retrieve.
+ An that contains the annotations for this .
+
+
+
+ Gets a collection of annotations of the specified type for this .
+
+ The of the annotations to retrieve.
+ An of that contains the annotations that match the specified type for this .
+
+
+
+ Removes the annotations of the specified type from this .
+
+ The type of annotations to remove.
+
+
+
+ Removes the annotations of the specified type from this .
+
+ The of annotations to remove.
+
Gets a comparer that can compare two tokens for value equality.
@@ -3480,12 +3604,25 @@
Type of the converter.
+
+
+ Initializes a new instance of the class.
+
+ Type of the converter.
+ Parameter list to use when constructing the JsonConverter. Can be null.
+
Gets the type of the converter.
The type of the converter.
+
+
+ The parameter list to use when constructing the JsonConverter described by ConverterType.
+ If null, the default constructor is used.
+
+
Instructs the how to serialize the object.
@@ -3715,10 +3852,10 @@
- Reads the next JSON token from the stream as a .
+ Reads the next JSON token from the stream as a [].
- A or a null reference if the next JSON token is null.
+ A [] or a null reference if the next JSON token is null.
@@ -4016,10 +4153,10 @@
- Reads the next JSON token from the stream as a .
+ Reads the next JSON token from the stream as a [].
- A or a null reference if the next JSON token is null. This method will return null at the end of an array.
+ A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
@@ -4103,6 +4240,17 @@
The collection's items converter.
+
+
+ The parameter list to use when constructing the JsonConverter described by ItemConverterType.
+ If null, the default constructor is used.
+ When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number,
+ order, and type of these parameters.
+
+
+ [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
+
Gets or sets the null value handling used when serializing this property.
@@ -4184,7 +4332,7 @@
- Represents a writer that provides a fast, non-cached, forward-only way of generating Json data.
+ Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
@@ -4380,9 +4528,9 @@
- Writes a value.
+ Writes a [] value.
- The value to write.
+ The [] value to write.
@@ -4745,6 +4893,15 @@
The string delimiter character.
A JSON string representation of the .
+
+
+ Converts the to its JSON string representation.
+
+ The value to convert.
+ The string delimiter character.
+ The string escape handling.
+ A JSON string representation of the .
+
Converts the to its JSON string representation.
@@ -5420,7 +5577,15 @@
The type of the objects in source, constrained to .
An of that contains the source collection.
- An of that contains the ancestors of every node in the source collection.
+ An of that contains the ancestors of every token in the source collection.
+
+
+
+ Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection.
+
+ The type of the objects in source, constrained to .
+ An of that contains the source collection.
+ An of that contains every token in the source collection, the ancestors of every token in the source collection.
@@ -5428,7 +5593,15 @@
The type of the objects in source, constrained to .
An of that contains the source collection.
- An of that contains the descendants of every node in the source collection.
+ An of that contains the descendants of every token in the source collection.
+
+
+
+ Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection.
+
+ The type of the objects in source, constrained to .
+ An of that contains the source collection.
+ An of that contains every token in the source collection, and the descendants of every token in the source collection.
@@ -5443,14 +5616,14 @@
An of that contains the source collection.
The token key.
- An of that contains the values of every node in the source collection with the given key.
+ An of that contains the values of every token in the source collection with the given key.
Returns a collection of child values of every object in the source collection.
An of that contains the source collection.
- An of that contains the values of every node in the source collection.
+ An of that contains the values of every token in the source collection.
@@ -5459,7 +5632,7 @@
The type to convert the values to.
An of that contains the source collection.
The token key.
- An that contains the converted values of every node in the source collection with the given key.
+ An that contains the converted values of every token in the source collection with the given key.
@@ -5467,7 +5640,7 @@
The type to convert the values to.
An of that contains the source collection.
- An that contains the converted values of every node in the source collection.
+ An that contains the converted values of every token in the source collection.
@@ -5492,7 +5665,7 @@
The source collection type.
An of that contains the source collection.
- An of that contains the values of every node in the source collection.
+ An of that contains the values of every token in the source collection.
@@ -5501,7 +5674,7 @@
An of that contains the source collection.
The type to convert the values to.
The source collection type.
- An that contains the converted values of every node in the source collection.
+ An that contains the converted values of every token in the source collection.
@@ -5563,6 +5736,12 @@
An containing the descendant tokens of the .
+
+
+ Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order.
+
+ An containing this token, and all the descendant tokens of the .
+
Adds the specified content as children of this .
@@ -5753,6 +5932,15 @@
An object that can be used to iterate through the collection.
+
+
+ Determines whether the specified is equal to this instance.
+
+ The to compare with this instance.
+
+ true if the specified is equal to this instance; otherwise, false.
+
+
Determines whether the specified is equal to this instance.
@@ -6246,7 +6434,7 @@
- Represents a reader that provides fast, non-cached, forward-only access to serialized Json data.
+ Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
@@ -6257,10 +6445,10 @@
- Reads the next JSON token from the stream as a .
+ Reads the next JSON token from the stream as a [].
- A or a null reference if the next JSON token is null. This method will return null at the end of an array.
+ A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
@@ -6301,6 +6489,11 @@
true if the next token was read successfully; false if there are no more tokens to read.
+
+
+ Gets the at the reader's current position.
+
+
Gets the path of the current JSON token.
@@ -6308,7 +6501,7 @@
- Represents a writer that provides a fast, non-cached, forward-only way of generating Json data.
+ Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
@@ -6487,9 +6680,9 @@
- Writes a value.
+ Writes a [] value.
- The value to write.
+ The [] value to write.
@@ -6509,6 +6702,11 @@
The value to write.
+
+
+ Gets the at the writer's current position.
+
+
Gets the token being writen.
@@ -6874,9 +7072,9 @@
If set to true the will use a cached shared with other resolvers of the same type.
- Sharing the cache will significantly performance because expensive reflection will only happen once but could cause unexpected
- behavior if different instances of the resolver are suppose to produce different results. When set to false it is highly
- recommended to reuse instances with the .
+ Sharing the cache will significantly improve performance with multiple resolver instances because expensive reflection will only
+ happen once. This setting can cause unexpected behavior if different instances of the resolver are suppose to produce different
+ results. When set to false it is highly recommended to reuse instances with the .
@@ -7234,6 +7432,12 @@
The that will get and set the during serialization.
+
+
+ Gets or sets the for this property.
+
+ The for this property.
+
Gets or sets the type of the property.
@@ -7902,6 +8106,21 @@
The underlying type for the contract.
+
+
+ Lookup and create an instance of the JsonConverter type described by the argument.
+
+ The JsonConverter type to create.
+ Optional arguments to pass to an initializing constructor of the JsonConverter.
+ If null, the default constructor is used.
+
+
+
+ Create a factory function that can be used to create instances of a JsonConverter described by the
+ argument type. The returned function can then be used to either invoke the converter's default ctor, or any
+ parameterized constructors by way of an object array.
+
+
Get and set values for a using reflection.
diff --git a/packages/Newtonsoft.Json.6.0.8/lib/net40/Newtonsoft.Json.dll b/packages/Newtonsoft.Json.6.0.8/lib/net40/Newtonsoft.Json.dll
new file mode 100644
index 0000000..55d537f
Binary files /dev/null and b/packages/Newtonsoft.Json.6.0.8/lib/net40/Newtonsoft.Json.dll differ
diff --git a/packages/Newtonsoft.Json.6.0.5/lib/net45/Newtonsoft.Json.xml b/packages/Newtonsoft.Json.6.0.8/lib/net40/Newtonsoft.Json.xml
similarity index 96%
rename from packages/Newtonsoft.Json.6.0.5/lib/net45/Newtonsoft.Json.xml
rename to packages/Newtonsoft.Json.6.0.8/lib/net40/Newtonsoft.Json.xml
index 65a77c2..c8eecf6 100644
--- a/packages/Newtonsoft.Json.6.0.5/lib/net45/Newtonsoft.Json.xml
+++ b/packages/Newtonsoft.Json.6.0.8/lib/net40/Newtonsoft.Json.xml
@@ -4,31 +4,14 @@
Newtonsoft.Json
-
-
- Represents a BSON Oid (object id).
-
-
-
-
- Initializes a new instance of the class.
-
- The Oid value.
-
-
-
- Gets or sets the value of the Oid.
-
- The value of the Oid.
-
- Represents a reader that provides fast, non-cached, forward-only access to serialized Json data.
+ Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
- Represents a reader that provides fast, non-cached, forward-only access to serialized Json data.
+ Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
@@ -56,9 +39,9 @@
- Reads the next JSON token from the stream as a .
+ Reads the next JSON token from the stream as a [].
- A or a null reference if the next JSON token is null. This method will return null at the end of an array.
+ A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
@@ -303,10 +286,10 @@
- Reads the next JSON token from the stream as a .
+ Reads the next JSON token from the stream as a [].
- A or a null reference if the next JSON token is null. This method will return null at the end of an array.
+ A [] or a null reference if the next JSON token is null. This method will return null at the end of an array.
@@ -383,7 +366,7 @@
- Represents a writer that provides a fast, non-cached, forward-only way of generating Json data.
+ Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
@@ -463,6 +446,22 @@
The to read the token from.
A flag indicating whether the current token's children should be written.
+
+
+ Writes the token and its value.
+
+ The to write.
+
+ The value to write.
+ A value is only required for tokens that have an associated value, e.g. the property name for .
+ A null value can be passed to the method for token's that don't have a value, e.g. .
+
+
+
+ Writes the token.
+
+ The to write.
+
Writes the specified end token.
@@ -718,9 +717,9 @@
- Writes a value.
+ Writes a [] value.
- The value to write.
+ The [] value to write.
@@ -1000,9 +999,9 @@
- Writes a value.
+ Writes a [] value.
- The value to write.
+ The [] value to write.
@@ -1024,7 +1023,7 @@
- Writes a value that represents a BSON object id.
+ Writes a [] value that represents a BSON object id.
The Object ID value to write.
@@ -1042,20 +1041,22 @@
The used when writing values to BSON.
-
+
- Specifies how constructors are used when initializing objects during deserialization by the .
+ Represents a BSON Oid (object id).
-
+
- First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor.
+ Initializes a new instance of the class.
+ The Oid value.
-
+
- Json.NET will use a non-public default constructor before falling back to a paramatized constructor.
+ Gets or sets the value of the Oid.
+ The value of the Oid.
@@ -1139,12 +1140,12 @@
true if this instance can convert the specified object type; otherwise, false.
-
+
- Converts a to and from JSON and BSON.
+ Converts a to and from JSON.
-
+
Writes the JSON representation of the object.
@@ -1152,7 +1153,7 @@
The value.
The calling serializer.
-
+
Reads the JSON representation of the object.
@@ -1162,22 +1163,21 @@
The calling serializer.
The object value.
-
+
- Determines whether this instance can convert the specified object type.
+ Determines whether this instance can convert the specified value type.
- Type of the object.
+ Type of the value.
- true if this instance can convert the specified object type; otherwise, false.
+ true if this instance can convert the specified value type; otherwise, false.
-
+
- Create a custom object
+ Converts a to and from JSON.
- The object type to convert.
-
+
Writes the JSON representation of the object.
@@ -1185,7 +1185,7 @@
The value.
The calling serializer.
-
+
Reads the JSON representation of the object.
@@ -1195,36 +1195,22 @@
The calling serializer.
The object value.
-
-
- Creates an object which will then be populated by the serializer.
-
- Type of the object.
- The created object.
-
-
+
- Determines whether this instance can convert the specified object type.
+ Determines whether this instance can convert the specified value type.
- Type of the object.
+ Type of the value.
- true if this instance can convert the specified object type; otherwise, false.
+ true if this instance can convert the specified value type; otherwise, false.
-
-
- Gets a value indicating whether this can write JSON.
-
-
- true if this can write JSON; otherwise, false.
-
-
-
+
- Converts a to and from JSON.
+ Create a custom object
+ The object type to convert.
-
+
Writes the JSON representation of the object.
@@ -1232,7 +1218,7 @@
The value.
The calling serializer.
-
+
Reads the JSON representation of the object.
@@ -1242,46 +1228,29 @@
The calling serializer.
The object value.
-
-
- Determines whether this instance can convert the specified value type.
-
- Type of the value.
-
- true if this instance can convert the specified value type; otherwise, false.
-
-
-
-
- Converts a to and from JSON.
-
-
-
+
- Writes the JSON representation of the object.
+ Creates an object which will then be populated by the serializer.
- The to write to.
- The value.
- The calling serializer.
+ Type of the object.
+ The created object.
-
+
- Reads the JSON representation of the object.
+ Determines whether this instance can convert the specified object type.
- The to read from.
Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
+
+ true if this instance can convert the specified object type; otherwise, false.
+
-
+
- Determines whether this instance can convert the specified value type.
+ Gets a value indicating whether this can write JSON.
- Type of the value.
-
- true if this instance can convert the specified value type; otherwise, false.
-
+
+ true if this can write JSON; otherwise, false.
+
@@ -1401,12 +1370,12 @@
true if this can write JSON; otherwise, false.
-
+
- Converts a to and from the ISO 8601 date format (e.g. 2008-04-12T12:53Z).
+ Converts a to and from JSON.
-
+
Writes the JSON representation of the object.
@@ -1414,7 +1383,7 @@
The value.
The calling serializer.
-
+
Reads the JSON representation of the object.
@@ -1424,53 +1393,21 @@
The calling serializer.
The object value.
-
-
- Gets or sets the date time styles used when converting a date to and from JSON.
-
- The date time styles used when converting a date to and from JSON.
-
-
-
- Gets or sets the date time format used when converting a date to and from JSON.
-
- The date time format used when converting a date to and from JSON.
-
-
-
- Gets or sets the culture used when converting a date to and from JSON.
-
- The culture used when converting a date to and from JSON.
-
-
-
- Converts a to and from a JavaScript date constructor (e.g. new Date(52231943)).
-
-
-
-
- Writes the JSON representation of the object.
-
- The to write to.
- The value.
- The calling serializer.
-
-
+
- Reads the JSON representation of the object.
+ Determines whether this instance can convert the specified object type.
- The to read from.
Type of the object.
- The existing property value of the JSON that is being converted.
- The calling serializer.
- The object value.
+
+ true if this instance can convert the specified object type; otherwise, false.
+
-
+
- Converts a to and from JSON.
+ Converts a to and from JSON and BSON.
-
+
Writes the JSON representation of the object.
@@ -1478,7 +1415,7 @@
The value.
The calling serializer.
-
+
Reads the JSON representation of the object.
@@ -1488,7 +1425,7 @@
The calling serializer.
The object value.
-
+
Determines whether this instance can convert the specified object type.
@@ -1578,6 +1515,21 @@
true if integers are allowed; otherwise, false.
+
+
+ Specifies how constructors are used when initializing objects during deserialization by the .
+
+
+
+
+ First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor.
+
+
+
+
+ Json.NET will use a non-public default constructor before falling back to a paramatized constructor.
+
+
Converts a to and from a string (e.g. "1.2.3.4").
@@ -1610,4407 +1562,4925 @@
true if this instance can convert the specified object type; otherwise, false.
-
+
- Converts XML to and from JSON.
+ Specifies float format handling options when writing special floating point numbers, e.g. ,
+ and with .
-
+
- Writes the JSON representation of the object.
+ Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity".
- The to write to.
- The calling serializer.
- The value.
-
+
- Reads the JSON representation of the object.
+ Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity.
+ Note that this will produce non-valid JSON.
- The to read from.
- Type of the object.
- The existing value of object being read.
- The calling serializer.
- The object value.
-
+
- Checks if the attributeName is a namespace attribute.
+ Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property.
- Attribute name to test.
- The attribute name prefix if it has one, otherwise an empty string.
- True if attribute name is for a namespace attribute, otherwise false.
-
+
- Determines whether this instance can convert the specified value type.
+ Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
- Type of the value.
-
- true if this instance can convert the specified value type; otherwise, false.
-
-
+
- Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements.
+ Floating point numbers are parsed to .
- The name of the deserialize root element.
-
-
-
- Gets or sets a flag to indicate whether to write the Json.NET array attribute.
- This attribute helps preserve arrays when converting the written XML back to JSON.
-
- true if the array attibute is written to the XML; otherwise, false.
-
-
- Gets or sets a value indicating whether to write the root JSON object.
-
- true if the JSON root object is omitted; otherwise, false.
-
-
+
- Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
+ Floating point numbers are parsed to .
-
+
- Floating point numbers are parsed to .
+ Instructs the how to serialize the collection.
-
+
- Floating point numbers are parsed to .
+ Instructs the how to serialize the object.
-
+
- Specifies how dates are formatted when writing JSON text.
+ Initializes a new instance of the class.
-
+
- Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z".
+ Initializes a new instance of the class with the specified container Id.
+ The container Id.
-
+
- Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/".
+ Gets or sets the id.
+ The id.
-
+
- Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text.
+ Gets or sets the title.
+ The title.
-
+
- Date formatted strings are not parsed to a date type and are read as strings.
+ Gets or sets the description.
+ The description.
-
+
- Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to .
+ Gets the collection's items converter.
+ The collection's items converter.
-
+
- Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to .
+ The parameter list to use when constructing the JsonConverter described by ItemConverterType.
+ If null, the default constructor is used.
+ When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number,
+ order, and type of these parameters.
+
+ [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
-
+
- Specifies how to treat the time value when converting between string and .
+ Gets or sets a value that indicates whether to preserve object references.
+
+ true to keep object reference; otherwise, false. The default is false.
+
-
+
- Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time.
+ Gets or sets a value that indicates whether to preserve collection's items references.
+
+ true to keep collection's items object references; otherwise, false. The default is false.
+
-
+
- Treat as a UTC. If the object represents a local time, it is converted to a UTC.
+ Gets or sets the reference loop handling used when serializing the collection's items.
+ The reference loop handling.
-
+
- Treat as a local time if a is being converted to a string.
- If a string is being converted to , convert to a local time if a time zone is specified.
+ Gets or sets the type name handling used when serializing the collection's items.
+ The type name handling.
-
+
- Time zone information should be preserved when converting.
+ Initializes a new instance of the class.
-
+
- Specifies default value handling options for the .
+ Initializes a new instance of the class with the specified container Id.
-
-
-
-
+ The container Id.
-
+
- Include members where the member value is the same as the member's default value when serializing objects.
- Included members are written to JSON. Has no effect when deserializing.
+ The exception thrown when an error occurs during Json serialization or deserialization.
-
+
- Ignore members where the member value is the same as the member's default value when serializing objects
- so that is is not written to JSON.
- This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers,
- decimals and floating point numbers; and false for booleans). The default value ignored can be changed by
- placing the on the property.
+ Initializes a new instance of the class.
-
+
- Members with a default value but no JSON will be set to their default value when deserializing.
+ Initializes a new instance of the class
+ with a specified error message.
+ The error message that explains the reason for the exception.
-
+
- Ignore members where the member value is the same as the member's default value when serializing objects
- and sets members to their default value when deserializing.
+ Initializes a new instance of the class
+ with a specified error message and a reference to the inner exception that is the cause of this exception.
+ The error message that explains the reason for the exception.
+ The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
-
+
- Specifies float format handling options when writing special floating point numbers, e.g. ,
- and with .
+ Initializes a new instance of the class.
+ The that holds the serialized object data about the exception being thrown.
+ The that contains contextual information about the source or destination.
+ The parameter is null.
+ The class name is null or is zero (0).
-
+
- Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity".
+ Specifies how dates are formatted when writing JSON text.
-
+
- Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity.
- Note that this will produce non-valid JSON.
+ Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z".
-
+
- Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property.
+ Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/".
-
+
- Specifies formatting options for the .
+ Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text.
-
+
- No special formatting is applied. This is the default.
+ Date formatted strings are not parsed to a date type and are read as strings.
-
+
- Causes child objects to be indented according to the and settings.
+ Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to .
-
+
- Provides an interface to enable a class to return line and position information.
+ Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to .
-
+
- Gets a value indicating whether the class can return line information.
+ Specifies how to treat the time value when converting between string and .
-
- true if LineNumber and LinePosition can be provided; otherwise, false.
-
-
+
- Gets the current line number.
+ Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time.
- The current line number or 0 if no line information is available (for example, HasLineInfo returns false).
-
+
- Gets the current line position.
+ Treat as a UTC. If the object represents a local time, it is converted to a UTC.
- The current line position or 0 if no line information is available (for example, HasLineInfo returns false).
-
+
- Instructs the how to serialize the collection.
+ Treat as a local time if a is being converted to a string.
+ If a string is being converted to , convert to a local time if a time zone is specified.
-
+
- Instructs the how to serialize the object.
+ Time zone information should be preserved when converting.
-
+
- Initializes a new instance of the class.
+ Specifies formatting options for the .
-
+
- Initializes a new instance of the class with the specified container Id.
+ No special formatting is applied. This is the default.
- The container Id.
-
+
- Gets or sets the id.
+ Causes child objects to be indented according to the and settings.
- The id.
-
+
- Gets or sets the title.
+ Instructs the to use the specified constructor when deserializing that object.
- The title.
-
+
- Gets or sets the description.
+ Instructs the to deserialize properties with no matching class member into the specified collection
+ and write values during serialization.
- The description.
-
+
- Gets the collection's items converter.
+ Initializes a new instance of the class.
- The collection's items converter.
-
+
- Gets or sets a value that indicates whether to preserve object references.
+ Gets or sets a value that indicates whether to write extension data when serializing the object.
- true to keep object reference; otherwise, false. The default is false.
+ true to write extension data when serializing the object; otherwise, false. The default is true.
-
+
- Gets or sets a value that indicates whether to preserve collection's items references.
+ Gets or sets a value that indicates whether to read extension data when deserializing the object.
- true to keep collection's items object references; otherwise, false. The default is false.
+ true to read extension data when deserializing the object; otherwise, false. The default is true.
-
+
- Gets or sets the reference loop handling used when serializing the collection's items.
+ Specifies the settings used when merging JSON.
- The reference loop handling.
-
+
- Gets or sets the type name handling used when serializing the collection's items.
+ Gets or sets the method used when merging JSON arrays.
- The type name handling.
+ The method used when merging JSON arrays.
-
+
- Initializes a new instance of the class.
+ Specifies how JSON arrays are merged together.
-
-
- Initializes a new instance of the class with a flag indicating whether the array can contain null items
-
- A flag indicating whether the array can contain null items.
+
+ Concatenate arrays.
-
-
- Initializes a new instance of the class with the specified container Id.
-
- The container Id.
+
+ Union arrays, skipping items that already exist.
-
+
+ Replace all array items.
+
+
+ Merge array items together, matched by index.
+
+
- Gets or sets a value indicating whether null items are allowed in the collection.
+ Specifies metadata property handling options for the .
- true if null items are allowed in the collection; otherwise, false.
-
+
- Instructs the to use the specified constructor when deserializing that object.
+ Read metadata properties located at the start of a JSON object.
-
+
- Provides methods for converting between common language runtime types and JSON types.
+ Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance.
-
-
-
-
+
- Represents JavaScript's boolean value true as a string. This field is read-only.
+ Do not try to read metadata properties.
-
+
- Represents JavaScript's boolean value false as a string. This field is read-only.
+ Represents a trace writer that writes to the application's instances.
-
+
- Represents JavaScript's null as a string. This field is read-only.
+ Represents a trace writer.
-
+
- Represents JavaScript's undefined as a string. This field is read-only.
+ Writes the specified trace level, message and optional exception.
+ The at which to write this trace.
+ The trace message.
+ The trace exception. This parameter is optional.
-
+
- Represents JavaScript's positive infinity as a string. This field is read-only.
+ Gets the that will be used to filter the trace messages passed to the writer.
+ For example a filter level of Info
will exclude Verbose
messages and include Info
,
+ Warning
and Error
messages.
+ The that will be used to filter the trace messages passed to the writer.
-
+
- Represents JavaScript's negative infinity as a string. This field is read-only.
+ Writes the specified trace level, message and optional exception.
+ The at which to write this trace.
+ The trace message.
+ The trace exception. This parameter is optional.
-
+
- Represents JavaScript's NaN as a string. This field is read-only.
+ Gets the that will be used to filter the trace messages passed to the writer.
+ For example a filter level of Info
will exclude Verbose
messages and include Info
,
+ Warning
and Error
messages.
+
+ The that will be used to filter the trace messages passed to the writer.
+
-
+
- Converts the to its JSON string representation.
+ Get and set values for a using dynamic methods.
- The value to convert.
- A JSON string representation of the .
-
+
- Converts the to its JSON string representation using the specified.
+ Provides methods to get and set values.
- The value to convert.
- The format the date will be converted to.
- The time zone handling when the date is converted to a string.
- A JSON string representation of the .
-
+
- Converts the to its JSON string representation.
+ Sets the value.
- The value to convert.
- A JSON string representation of the .
+ The target to set the value on.
+ The value to set on the target.
-
+
- Converts the to its JSON string representation using the specified.
+ Gets the value.
- The value to convert.
- The format the date will be converted to.
- A JSON string representation of the .
+ The target to get the value from.
+ The value.
-
+
- Converts the to its JSON string representation.
+ Initializes a new instance of the class.
- The value to convert.
- A JSON string representation of the .
+ The member info.
-
+
- Converts the to its JSON string representation.
+ Sets the value.
- The value to convert.
- A JSON string representation of the .
+ The target to set the value on.
+ The value to set on the target.
-
+
- Converts the to its JSON string representation.
+ Gets the value.
- The value to convert.
- A JSON string representation of the .
+ The target to get the value from.
+ The value.
-
+
- Converts the to its JSON string representation.
+ Provides methods to get attributes.
- The value to convert.
- A JSON string representation of the .
-
+
- Converts the to its JSON string representation.
+ Returns a collection of all of the attributes, or an empty collection if there are no attributes.
- The value to convert.
- A JSON string representation of the .
+ When true, look up the hierarchy chain for the inherited custom attribute.
+ A collection of s, or an empty collection.
-
+
- Converts the to its JSON string representation.
+ Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
- The value to convert.
- A JSON string representation of the .
+ The type of the attributes.
+ When true, look up the hierarchy chain for the inherited custom attribute.
+ A collection of s, or an empty collection.
-
+
- Converts the to its JSON string representation.
+ Contract details for a used by the .
- The value to convert.
- A JSON string representation of the .
-
+
- Converts the to its JSON string representation.
+ Contract details for a used by the .
- The value to convert.
- A JSON string representation of the .
-
+
- Converts the to its JSON string representation.
+ Gets the underlying type for the contract.
- The value to convert.
- A JSON string representation of the .
+ The underlying type for the contract.
-
+
- Converts the to its JSON string representation.
+ Gets or sets the type created during deserialization.
- The value to convert.
- A JSON string representation of the .
+ The type created during deserialization.
-
+
- Converts the to its JSON string representation.
+ Gets or sets whether this type contract is serialized as a reference.
- The value to convert.
- A JSON string representation of the .
+ Whether this type contract is serialized as a reference.
-
+
- Converts the to its JSON string representation.
+ Gets or sets the default for this contract.
- The value to convert.
- A JSON string representation of the .
+ The converter.
-
+
- Converts the to its JSON string representation.
+ Gets or sets all methods called immediately after deserialization of the object.
- The value to convert.
- A JSON string representation of the .
+ The methods called immediately after deserialization of the object.
-
+
- Converts the to its JSON string representation.
+ Gets or sets all methods called during deserialization of the object.
- The value to convert.
- A JSON string representation of the .
+ The methods called during deserialization of the object.
-
+
- Converts the to its JSON string representation.
+ Gets or sets all methods called after serialization of the object graph.
- The value to convert.
- A JSON string representation of the .
+ The methods called after serialization of the object graph.
-
+
- Converts the to its JSON string representation.
+ Gets or sets all methods called before serialization of the object.
- The value to convert.
- A JSON string representation of the .
+ The methods called before serialization of the object.
-
+
- Converts the to its JSON string representation.
+ Gets or sets all method called when an error is thrown during the serialization of the object.
- The value to convert.
- A JSON string representation of the .
+ The methods called when an error is thrown during the serialization of the object.
-
+
- Converts the to its JSON string representation.
+ Gets or sets the method called immediately after deserialization of the object.
- The value to convert.
- A JSON string representation of the .
+ The method called immediately after deserialization of the object.
-
+
- Converts the to its JSON string representation.
+ Gets or sets the method called during deserialization of the object.
- The value to convert.
- The string delimiter character.
- A JSON string representation of the .
+ The method called during deserialization of the object.
-
+
- Converts the to its JSON string representation.
+ Gets or sets the method called after serialization of the object graph.
- The value to convert.
- A JSON string representation of the .
+ The method called after serialization of the object graph.
-
+
- Serializes the specified object to a JSON string.
+ Gets or sets the method called before serialization of the object.
- The object to serialize.
- A JSON string representation of the object.
+ The method called before serialization of the object.
-
+
- Serializes the specified object to a JSON string using formatting.
+ Gets or sets the method called when an error is thrown during the serialization of the object.
- The object to serialize.
- Indicates how the output is formatted.
-
- A JSON string representation of the object.
-
+ The method called when an error is thrown during the serialization of the object.
-
+
- Serializes the specified object to a JSON string using a collection of .
+ Gets or sets the default creator method used to create the object.
- The object to serialize.
- A collection converters used while serializing.
- A JSON string representation of the object.
+ The default creator method used to create the object.
-
-
- Serializes the specified object to a JSON string using formatting and a collection of .
-
- The object to serialize.
- Indicates how the output is formatted.
- A collection converters used while serializing.
- A JSON string representation of the object.
-
-
+
- Serializes the specified object to a JSON string using .
+ Gets or sets a value indicating whether the default creator is non public.
- The object to serialize.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- A JSON string representation of the object.
-
+ true if the default object creator is non-public; otherwise, false.
-
+
- Serializes the specified object to a JSON string using a type, formatting and .
+ Initializes a new instance of the class.
- The object to serialize.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
- A JSON string representation of the object.
-
+ The underlying type for the contract.
-
+
- Serializes the specified object to a JSON string using formatting and .
+ Gets or sets the default collection items .
- The object to serialize.
- Indicates how the output is formatted.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- A JSON string representation of the object.
-
+ The converter.
-
+
- Serializes the specified object to a JSON string using a type, formatting and .
+ Gets or sets a value indicating whether the collection items preserve object references.
- The object to serialize.
- Indicates how the output is formatted.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
-
- A JSON string representation of the object.
-
+ true if collection items preserve object references; otherwise, false.
-
+
- Asynchronously serializes the specified object to a JSON string.
- Serialization will happen on a new thread.
+ Gets or sets the collection item reference loop handling.
- The object to serialize.
-
- A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object.
-
+ The reference loop handling.
-
+
- Asynchronously serializes the specified object to a JSON string using formatting.
- Serialization will happen on a new thread.
+ Gets or sets the collection item type name handling.
- The object to serialize.
- Indicates how the output is formatted.
-
- A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object.
-
+ The type name handling.
-
+
- Asynchronously serializes the specified object to a JSON string using formatting and a collection of .
- Serialization will happen on a new thread.
+ Represents a trace writer that writes to memory. When the trace message limit is
+ reached then old trace messages will be removed as new messages are added.
- The object to serialize.
- Indicates how the output is formatted.
- The used to serialize the object.
- If this is null, default serialization settings will be used.
-
- A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object.
-
-
+
- Deserializes the JSON to a .NET object.
+ Initializes a new instance of the class.
- The JSON to deserialize.
- The deserialized object from the JSON string.
-
+
- Deserializes the JSON to a .NET object using .
+ Writes the specified trace level, message and optional exception.
- The JSON to deserialize.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized object from the JSON string.
+ The at which to write this trace.
+ The trace message.
+ The trace exception. This parameter is optional.
-
+
- Deserializes the JSON to the specified .NET type.
+ Returns an enumeration of the most recent trace messages.
- The JSON to deserialize.
- The of object being deserialized.
- The deserialized object from the JSON string.
+ An enumeration of the most recent trace messages.
-
+
- Deserializes the JSON to the specified .NET type.
+ Returns a of the most recent trace messages.
- The type of the object to deserialize to.
- The JSON to deserialize.
- The deserialized object from the JSON string.
+
+ A of the most recent trace messages.
+
-
+
- Deserializes the JSON to the given anonymous type.
+ Gets the that will be used to filter the trace messages passed to the writer.
+ For example a filter level of Info
will exclude Verbose
messages and include Info
,
+ Warning
and Error
messages.
-
- The anonymous type to deserialize to. This can't be specified
- traditionally and must be infered from the anonymous type passed
- as a parameter.
-
- The JSON to deserialize.
- The anonymous type object.
- The deserialized anonymous type from the JSON string.
+
+ The that will be used to filter the trace messages passed to the writer.
+
-
+
- Deserializes the JSON to the given anonymous type using .
+ Provides methods to get attributes from a , , or .
-
- The anonymous type to deserialize to. This can't be specified
- traditionally and must be infered from the anonymous type passed
- as a parameter.
-
- The JSON to deserialize.
- The anonymous type object.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized anonymous type from the JSON string.
-
+
- Deserializes the JSON to the specified .NET type using a collection of .
+ Initializes a new instance of the class.
- The type of the object to deserialize to.
- The JSON to deserialize.
- Converters to use while deserializing.
- The deserialized object from the JSON string.
-
+
- Deserializes the JSON to the specified .NET type using .
+ Returns a collection of all of the attributes, or an empty collection if there are no attributes.
- The type of the object to deserialize to.
- The object to deserialize.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized object from the JSON string.
+ When true, look up the hierarchy chain for the inherited custom attribute.
+ A collection of s, or an empty collection.
-
+
- Deserializes the JSON to the specified .NET type using a collection of .
+ Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
- The JSON to deserialize.
- The type of the object to deserialize.
- Converters to use while deserializing.
- The deserialized object from the JSON string.
+ The type of the attributes.
+ When true, look up the hierarchy chain for the inherited custom attribute.
+ A collection of s, or an empty collection.
-
+
- Deserializes the JSON to the specified .NET type using .
+ Provides an interface to enable a class to return line and position information.
- The JSON to deserialize.
- The type of the object to deserialize to.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
- The deserialized object from the JSON string.
-
+
- Asynchronously deserializes the JSON to the specified .NET type.
- Deserialization will happen on a new thread.
+ Gets a value indicating whether the class can return line information.
- The type of the object to deserialize to.
- The JSON to deserialize.
- A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string.
+ true if LineNumber and LinePosition can be provided; otherwise, false.
-
+
- Asynchronously deserializes the JSON to the specified .NET type using .
- Deserialization will happen on a new thread.
+ Gets the current line number.
- The type of the object to deserialize to.
- The JSON to deserialize.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
-
- A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string.
-
+ The current line number or 0 if no line information is available (for example, HasLineInfo returns false).
-
+
- Asynchronously deserializes the JSON to the specified .NET type.
- Deserialization will happen on a new thread.
+ Gets the current line position.
- The JSON to deserialize.
-
- A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string.
-
+ The current line position or 0 if no line information is available (for example, HasLineInfo returns false).
-
+
- Asynchronously deserializes the JSON to the specified .NET type using .
- Deserialization will happen on a new thread.
+ Specifies how strings are escaped when writing JSON text.
- The JSON to deserialize.
- The type of the object to deserialize to.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
-
- A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string.
-
-
+
- Populates the object with values from the JSON string.
+ Only control characters (e.g. newline) are escaped.
- The JSON to populate values from.
- The target object to populate values onto.
-
+
- Populates the object with values from the JSON string using .
+ All non-ASCII and control characters (e.g. newline) are escaped.
- The JSON to populate values from.
- The target object to populate values onto.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
-
+
- Asynchronously populates the object with values from the JSON string using .
+ HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped.
- The JSON to populate values from.
- The target object to populate values onto.
-
- The used to deserialize the object.
- If this is null, default serialization settings will be used.
-
-
- A task that represents the asynchronous populate operation.
-
-
+
- Serializes the XML node to a JSON string.
+ Represents a raw JSON string.
- The node to serialize.
- A JSON string of the XmlNode.
-
+
- Serializes the XML node to a JSON string using formatting.
+ Represents a value in JSON (string, integer, date, etc).
- The node to serialize.
- Indicates how the output is formatted.
- A JSON string of the XmlNode.
-
+
- Serializes the XML node to a JSON string using formatting and omits the root object if is true.
+ Represents an abstract JSON token.
- The node to serialize.
- Indicates how the output is formatted.
- Omits writing the root object.
- A JSON string of the XmlNode.
-
+
- Deserializes the XmlNode from a JSON string.
+ Represents a collection of objects.
- The JSON string.
- The deserialized XmlNode
+ The type of token
-
+
- Deserializes the XmlNode from a JSON string nested in a root elment specified by .
+ Gets the with the specified key.
- The JSON string.
- The name of the root element to append when deserializing.
- The deserialized XmlNode
+
-
+
- Deserializes the XmlNode from a JSON string nested in a root elment specified by
- and writes a .NET array attribute for collections.
+ Compares the values of two tokens, including the values of all descendant tokens.
- The JSON string.
- The name of the root element to append when deserializing.
-
- A flag to indicate whether to write the Json.NET array attribute.
- This attribute helps preserve arrays when converting the written XML back to JSON.
-
- The deserialized XmlNode
+ The first to compare.
+ The second to compare.
+ true if the tokens are equal; otherwise false.
-
+
- Serializes the to a JSON string.
+ Adds the specified content immediately after this token.
- The node to convert to JSON.
- A JSON string of the XNode.
+ A content object that contains simple content or a collection of content objects to be added after this token.
-
+
- Serializes the to a JSON string using formatting.
+ Adds the specified content immediately before this token.
- The node to convert to JSON.
- Indicates how the output is formatted.
- A JSON string of the XNode.
+ A content object that contains simple content or a collection of content objects to be added before this token.
-
+
- Serializes the to a JSON string using formatting and omits the root object if is true.
+ Returns a collection of the ancestor tokens of this token.
- The node to serialize.
- Indicates how the output is formatted.
- Omits writing the root object.
- A JSON string of the XNode.
+ A collection of the ancestor tokens of this token.
-
+
- Deserializes the from a JSON string.
+ Returns a collection of tokens that contain this token, and the ancestors of this token.
- The JSON string.
- The deserialized XNode
+ A collection of tokens that contain this token, and the ancestors of this token.
-
+
- Deserializes the from a JSON string nested in a root elment specified by .
+ Returns a collection of the sibling tokens after this token, in document order.
- The JSON string.
- The name of the root element to append when deserializing.
- The deserialized XNode
+ A collection of the sibling tokens after this tokens, in document order.
-
+
- Deserializes the from a JSON string nested in a root elment specified by
- and writes a .NET array attribute for collections.
+ Returns a collection of the sibling tokens before this token, in document order.
- The JSON string.
- The name of the root element to append when deserializing.
-
- A flag to indicate whether to write the Json.NET array attribute.
- This attribute helps preserve arrays when converting the written XML back to JSON.
-
- The deserialized XNode
+ A collection of the sibling tokens before this token, in document order.
-
+
- Gets or sets a function that creates default .
- Default settings are automatically used by serialization methods on ,
- and and on .
- To serialize without using any default settings create a with
- .
+ Gets the with the specified key converted to the specified type.
+ The type to convert the token to.
+ The token key.
+ The converted token value.
-
+
- Instructs the to use the specified when serializing the member or class.
+ Returns a collection of the child tokens of this token, in document order.
+ An of containing the child tokens of this , in document order.
-
+
- Initializes a new instance of the class.
+ Returns a collection of the child tokens of this token, in document order, filtered by the specified type.
- Type of the converter.
+ The type to filter the child tokens on.
+ A containing the child tokens of this , in document order.
-
+
- Gets the type of the converter.
+ Returns a collection of the child values of this token, in document order.
- The type of the converter.
+ The type to convert the values to.
+ A containing the child values of this , in document order.
-
+
- Represents a collection of .
+ Removes this token from its parent.
-
+
- Instructs the how to serialize the collection.
+ Replaces this token with the specified token.
+ The value.
-
+
- Initializes a new instance of the class.
+ Writes this token to a .
+ A into which this method will write.
+ A collection of which will be used when writing the token.
-
+
- Initializes a new instance of the class with the specified container Id.
+ Returns the indented JSON for this token.
- The container Id.
+
+ The indented JSON for this token.
+
-
+
- The exception thrown when an error occurs during Json serialization or deserialization.
+ Returns the JSON for this token using the given formatting and converters.
+ Indicates how the output is formatted.
+ A collection of which will be used when writing the token.
+ The JSON for this token using the given formatting and converters.
-
+
- Initializes a new instance of the class.
+ Performs an explicit conversion from to .
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class
- with a specified error message.
+ Performs an explicit conversion from to .
- The error message that explains the reason for the exception.
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
+ Performs an explicit conversion from to .
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class.
+ Performs an explicit conversion from to .
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
- The parameter is null.
- The class name is null or is zero (0).
+ The value.
+ The result of the conversion.
-
+
- Instructs the to deserialize properties with no matching class member into the specified collection
- and write values during serialization.
+ Performs an explicit conversion from to .
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class.
+ Performs an explicit conversion from to .
+ The value.
+ The result of the conversion.
-
+
- Gets or sets a value that indicates whether to write extension data when serializing the object.
+ Performs an explicit conversion from to .
-
- true to write extension data when serializing the object; otherwise, false. The default is true.
-
+ The value.
+ The result of the conversion.
-
+
- Gets or sets a value that indicates whether to read extension data when deserializing the object.
+ Performs an explicit conversion from to .
-
- true to read extension data when deserializing the object; otherwise, false. The default is true.
-
+ The value.
+ The result of the conversion.
-
+
- Instructs the not to serialize the public field or public read/write property value.
+ Performs an explicit conversion from to .
+ The value.
+ The result of the conversion.
-
+
- Instructs the how to serialize the object.
+ Performs an explicit conversion from to .
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class.
+ Performs an explicit conversion from to .
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class with the specified member serialization.
+ Performs an explicit conversion from to .
- The member serialization.
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class with the specified container Id.
+ Performs an explicit conversion from to .
- The container Id.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets the member serialization.
+ Performs an explicit conversion from to .
- The member serialization.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets a value that indicates whether the object's properties are required.
+ Performs an explicit conversion from to .
-
- A value indicating whether the object's properties are required.
-
+ The value.
+ The result of the conversion.
-
+
- Instructs the to always serialize the member with the specified name.
+ Performs an explicit conversion from to .
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class.
+ Performs an explicit conversion from to .
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class with the specified name.
+ Performs an explicit conversion from to .
- Name of the property.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets the converter used when serializing the property's collection items.
+ Performs an explicit conversion from to .
- The collection's items converter.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets the null value handling used when serializing this property.
+ Performs an explicit conversion from to .
- The null value handling.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets the default value handling used when serializing this property.
+ Performs an explicit conversion from to .
- The default value handling.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets the reference loop handling used when serializing this property.
+ Performs an explicit conversion from to .
- The reference loop handling.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets the object creation handling used when deserializing this property.
+ Performs an explicit conversion from to .
- The object creation handling.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets the type name handling used when serializing this property.
+ Performs an explicit conversion from to .
- The type name handling.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets whether this property's value is serialized as a reference.
+ Performs an explicit conversion from to .
- Whether this property's value is serialized as a reference.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets the order of serialization and deserialization of a member.
+ Performs an explicit conversion from to .
- The numeric order of serialization or deserialization.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets a value indicating whether this property is required.
+ Performs an explicit conversion from to .
-
- A value indicating whether this property is required.
-
+ The value.
+ The result of the conversion.
-
+
- Gets or sets the name of the property.
+ Performs an explicit conversion from to .
- The name of the property.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets the the reference loop handling used when serializing the property's collection items.
+ Performs an explicit conversion from to .
- The collection's items reference loop handling.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets the the type name handling used when serializing the property's collection items.
+ Performs an explicit conversion from to .
- The collection's items type name handling.
+ The value.
+ The result of the conversion.
-
+
- Gets or sets whether this property's collection items are serialized as a reference.
+ Performs an explicit conversion from to .
- Whether this property's collection items are serialized as a reference.
+ The value.
+ The result of the conversion.
-
+
- The exception thrown when an error occurs while reading Json text.
+ Performs an explicit conversion from to [].
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class.
+ Performs an explicit conversion from to .
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class
- with a specified error message.
+ Performs an explicit conversion from to .
- The error message that explains the reason for the exception.
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
+ Performs an explicit conversion from to .
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
+ The value.
+ The result of the conversion.
-
+
- Initializes a new instance of the class.
+ Performs an explicit conversion from to .
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
- The parameter is null.
- The class name is null or is zero (0).
+ The value.
+ The result of the conversion.
-
+
- Gets the line number indicating where the error occurred.
+ Performs an explicit conversion from to .
- The line number indicating where the error occurred.
+ The value.
+ The result of the conversion.
-
+
- Gets the line position indicating where the error occurred.
+ Performs an implicit conversion from to .
- The line position indicating where the error occurred.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Gets the path to the JSON where the error occurred.
+ Performs an implicit conversion from to .
- The path to the JSON where the error occurred.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- The exception thrown when an error occurs during Json serialization or deserialization.
+ Performs an implicit conversion from to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Initializes a new instance of the class.
+ Performs an implicit conversion from to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Initializes a new instance of the class
- with a specified error message.
+ Performs an implicit conversion from to .
- The error message that explains the reason for the exception.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Initializes a new instance of the class
- with a specified error message and a reference to the inner exception that is the cause of this exception.
+ Performs an implicit conversion from to .
- The error message that explains the reason for the exception.
- The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Initializes a new instance of the class.
+ Performs an implicit conversion from to .
- The that holds the serialized object data about the exception being thrown.
- The that contains contextual information about the source or destination.
- The parameter is null.
- The class name is null or is zero (0).
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Serializes and deserializes objects into and from the JSON format.
- The enables you to control how objects are encoded into JSON.
+ Performs an implicit conversion from to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Initializes a new instance of the class.
+ Performs an implicit conversion from to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Creates a new instance.
- The will not use default settings.
+ Performs an implicit conversion from to .
-
- A new instance.
- The will not use default settings.
-
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Creates a new instance using the specified .
- The will not use default settings.
+ Performs an implicit conversion from to .
- The settings to be applied to the .
-
- A new instance using the specified .
- The will not use default settings.
-
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Creates a new instance.
- The will use default settings.
+ Performs an implicit conversion from to .
-
- A new instance.
- The will use default settings.
-
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Creates a new instance using the specified .
- The will use default settings.
+ Performs an implicit conversion from to .
- The settings to be applied to the .
-
- A new instance using the specified .
- The will use default settings.
-
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Populates the JSON values onto the target object.
+ Performs an implicit conversion from to .
- The that contains the JSON structure to reader values from.
- The target object to populate values onto.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Populates the JSON values onto the target object.
+ Performs an implicit conversion from to .
- The that contains the JSON structure to reader values from.
- The target object to populate values onto.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Deserializes the Json structure contained by the specified .
+ Performs an implicit conversion from to .
- The that contains the JSON structure to deserialize.
- The being deserialized.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Deserializes the Json structure contained by the specified
- into an instance of the specified type.
+ Performs an implicit conversion from to .
- The containing the object.
- The of object being deserialized.
- The instance of being deserialized.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Deserializes the Json structure contained by the specified
- into an instance of the specified type.
+ Performs an implicit conversion from to .
- The containing the object.
- The type of the object to deserialize.
- The instance of being deserialized.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Deserializes the Json structure contained by the specified
- into an instance of the specified type.
+ Performs an implicit conversion from to .
- The containing the object.
- The of object being deserialized.
- The instance of being deserialized.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Serializes the specified and writes the Json structure
- to a Stream using the specified .
+ Performs an implicit conversion from to .
- The used to write the Json structure.
- The to serialize.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Serializes the specified and writes the Json structure
- to a Stream using the specified .
+ Performs an implicit conversion from to .
- The used to write the Json structure.
- The to serialize.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Serializes the specified and writes the Json structure
- to a Stream using the specified .
+ Performs an implicit conversion from to .
- The used to write the Json structure.
- The to serialize.
-
- The type of the value being serialized.
- This parameter is used when is Auto to write out the type name if the type of the value does not match.
- Specifing the type is optional.
-
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Serializes the specified and writes the Json structure
- to a Stream using the specified .
+ Performs an implicit conversion from to .
- The used to write the Json structure.
- The to serialize.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Occurs when the errors during serialization and deserialization.
+ Performs an implicit conversion from to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Gets or sets the used by the serializer when resolving references.
+ Performs an implicit conversion from to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Gets or sets the used by the serializer when resolving type names.
+ Performs an implicit conversion from to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Gets or sets the used by the serializer when writing trace messages.
+ Performs an implicit conversion from to .
- The trace writer.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Gets or sets how type name writing and reading is handled by the serializer.
+ Performs an implicit conversion from to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Gets or sets how a type name assembly is written and resolved by the serializer.
+ Performs an implicit conversion from to .
- The type name assembly format.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Gets or sets how object references are preserved by the serializer.
+ Performs an implicit conversion from [] to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Get or set how reference loops (e.g. a class referencing itself) is handled.
+ Performs an implicit conversion from to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Get or set how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization.
+ Performs an implicit conversion from to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Get or set how null values are handled during serialization and deserialization.
+ Performs an implicit conversion from to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Get or set how null default are handled during serialization and deserialization.
+ Performs an implicit conversion from to .
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Gets or sets how objects are created during deserialization.
+ Performs an implicit conversion from to .
- The object creation handling.
+ The value to create a from.
+ The initialized with the specified value.
-
+
- Gets or sets how constructors are used during deserialization.
+ Creates an for this token.
- The constructor handling.
+ An that can be used to read this token and its descendants.
-
+
- Gets or sets how metadata properties are used during deserialization.
+ Creates a from an object.
- The metadata properties handling.
+ The object that will be used to create .
+ A with the value of the specified object
-
+
- Gets a collection that will be used during serialization.
+ Creates a from an object using the specified .
- Collection that will be used during serialization.
+ The object that will be used to create .
+ The that will be used when reading the object.
+ A with the value of the specified object
-
+
- Gets or sets the contract resolver used by the serializer when
- serializing .NET objects to JSON and vice versa.
+ Creates the specified .NET type from the .
+ The object type that the token will be deserialized to.
+ The new object created from the JSON value.
-
+
- Gets or sets the used by the serializer when invoking serialization callback methods.
+ Creates the specified .NET type from the .
- The context.
-
-
+ The object type that the token will be deserialized to.
+ The new object created from the JSON value.
+
+
- Indicates how JSON text output is formatted.
+ Creates the specified .NET type from the using the specified .
+ The object type that the token will be deserialized to.
+ The that will be used when creating the object.
+ The new object created from the JSON value.
-
+
- Get or set how dates are written to JSON text.
+ Creates the specified .NET type from the using the specified .
+ The object type that the token will be deserialized to.
+ The that will be used when creating the object.
+ The new object created from the JSON value.
-
+
- Get or set how time zones are handling during serialization and deserialization.
+ Creates a from a .
+ An positioned at the token to read into this .
+
+ An that contains the token and its descendant tokens
+ that were read from the reader. The runtime type of the token is determined
+ by the token type of the first token encountered in the reader.
+
-
+
- Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
+ Load a from a string that contains JSON.
+ A that contains JSON.
+ A populated from the string that contains JSON.
-
+
- Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
+ Creates a from a .
+ An positioned at the token to read into this .
+
+ An that contains the token and its descendant tokens
+ that were read from the reader. The runtime type of the token is determined
+ by the token type of the first token encountered in the reader.
+
-
+
- Get or set how special floating point numbers, e.g. ,
- and ,
- are written as JSON text.
+ Selects a using a JPath expression. Selects the token that matches the object path.
+
+ A that contains a JPath expression.
+
+ A , or null.
-
+
- Get or set how strings are escaped when writing JSON text.
+ Selects a using a JPath expression. Selects the token that matches the object path.
+
+ A that contains a JPath expression.
+
+ A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression.
+ A .
-
+
- Get or set how and values are formatting when writing JSON text.
+ Selects a collection of elements using a JPath expression.
+
+ A that contains a JPath expression.
+
+ An that contains the selected elements.
-
+
- Gets or sets the culture used when reading JSON. Defaults to .
+ Selects a collection of elements using a JPath expression.
+
+ A that contains a JPath expression.
+
+ A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression.
+ An that contains the selected elements.
-
+
- Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a .
+ Returns the responsible for binding operations performed on this object.
+ The expression tree representation of the runtime value.
+
+ The to bind this object.
+
-
+
- Gets a value indicating whether there will be a check for additional JSON content after deserializing an object.
+ Returns the responsible for binding operations performed on this object.
-
- true if there will be a check for additional JSON content after deserializing an object; otherwise, false.
-
+ The expression tree representation of the runtime value.
+
+ The to bind this object.
+
-
+
- Specifies the settings on a object.
+ Creates a new instance of the . All child tokens are recursively cloned.
+ A new instance of the .
-
+
- Initializes a new instance of the