Improve documention to mention non-JSON strings for string values
This commit is contained in:
@@ -420,6 +420,10 @@ namespace Newtonsoft.Json.Linq
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the indented JSON for this token.
|
/// Returns the indented JSON for this token.
|
||||||
/// </summary>
|
/// </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>
|
/// <returns>
|
||||||
/// The indented JSON for this token.
|
/// The indented JSON for this token.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
|
|||||||
@@ -887,6 +887,10 @@ namespace Newtonsoft.Json.Linq
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a <see cref="String"/> that represents this instance.
|
/// Returns a <see cref="String"/> that represents this instance.
|
||||||
/// </summary>
|
/// </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>
|
/// <returns>
|
||||||
/// A <see cref="String"/> that represents this instance.
|
/// A <see cref="String"/> that represents this instance.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
|
|||||||
Reference in New Issue
Block a user