From 0561af1de4d782e2b6674cc032cf0cedb642d6e4 Mon Sep 17 00:00:00 2001 From: Adam Gauthier Date: Sat, 1 Dec 2018 05:04:34 -0500 Subject: [PATCH] Change Newtonsoft deserializing bug comment to link to the new issue --- .../commands/utility/WebCmdlet/JsonObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObject.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObject.cs index b7c04b1e58b..71b50a5a8ec 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObject.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObject.cs @@ -60,7 +60,7 @@ public static object ConvertFromJson(string input, bool returnHashtable, out Err try { // JsonConvert.DeserializeObject does not throw an exception when an invalid Json array is passed. - // This issue is being tracked by https://github.com/JamesNK/Newtonsoft.Json/issues/1321. + // This issue is being tracked by https://github.com/JamesNK/Newtonsoft.Json/issues/1930. // To work around this, we need to identify when input is a Json array, and then try to parse it via JArray.Parse(). // If input starts with '[' (ignoring white spaces).