From c5f210347055c43970199d4611993200d00977fd Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Sun, 1 Sep 2019 16:21:36 +1200 Subject: [PATCH] Improve documention to mention non-JSON strings for string values --- Src/Newtonsoft.Json/Linq/JToken.cs | 4 ++++ Src/Newtonsoft.Json/Linq/JValue.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Src/Newtonsoft.Json/Linq/JToken.cs b/Src/Newtonsoft.Json/Linq/JToken.cs index 611ba8e7..4dcd5104 100644 --- a/Src/Newtonsoft.Json/Linq/JToken.cs +++ b/Src/Newtonsoft.Json/Linq/JToken.cs @@ -420,6 +420,10 @@ namespace Newtonsoft.Json.Linq /// /// Returns the indented JSON for this token. /// + /// + /// ToString() returns a non-JSON string value for tokens with a type of . + /// If you want the JSON for all token types then you should use . + /// /// /// The indented JSON for this token. /// diff --git a/Src/Newtonsoft.Json/Linq/JValue.cs b/Src/Newtonsoft.Json/Linq/JValue.cs index ae7c6211..ff089c55 100644 --- a/Src/Newtonsoft.Json/Linq/JValue.cs +++ b/Src/Newtonsoft.Json/Linq/JValue.cs @@ -887,6 +887,10 @@ namespace Newtonsoft.Json.Linq /// /// Returns a that represents this instance. /// + /// + /// ToString() returns a non-JSON string value for tokens with a type of . + /// If you want the JSON for all token types then you should use . + /// /// /// A that represents this instance. ///