Improve documention to mention non-JSON strings for string values

This commit is contained in:
James Newton-King
2019-09-01 16:21:36 +12:00
parent 2ec997d3a7
commit c5f2103470
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -420,6 +420,10 @@ namespace Newtonsoft.Json.Linq
/// <summary>
/// Returns the indented JSON for this token.
/// </summary>
/// <remarks>
/// <c>ToString()</c> returns a non-JSON string value for tokens with a type of <see cref="JTokenType.String"/>.
/// If you want the JSON for all token types then you should use <see cref="WriteTo(JsonWriter, JsonConverter[])"/>.
/// </remarks>
/// <returns>
/// The indented JSON for this token.
/// </returns>
+4
View File
@@ -887,6 +887,10 @@ namespace Newtonsoft.Json.Linq
/// <summary>
/// Returns a <see cref="String"/> that represents this instance.
/// </summary>
/// <remarks>
/// <c>ToString()</c> returns a non-JSON string value for tokens with a type of <see cref="JTokenType.String"/>.
/// If you want the JSON for all token types then you should use <see cref="WriteTo(JsonWriter, JsonConverter[])"/>.
/// </remarks>
/// <returns>
/// A <see cref="String"/> that represents this instance.
/// </returns>