diff --git a/Src/Newtonsoft.Json.Tests/Linq/JsonPath/JPathExecuteTests.cs b/Src/Newtonsoft.Json.Tests/Linq/JsonPath/JPathExecuteTests.cs index bb781a54..69c1a815 100644 --- a/Src/Newtonsoft.Json.Tests/Linq/JsonPath/JPathExecuteTests.cs +++ b/Src/Newtonsoft.Json.Tests/Linq/JsonPath/JPathExecuteTests.cs @@ -1489,6 +1489,23 @@ namespace Newtonsoft.Json.Tests.Linq.JsonPath Assert.AreEqual("String", mustBeString2.Single()); } + [Test] + public void QueryWithEscapedPath() + { + JToken t = JToken.Parse(@"{ +""Property"": [ + { + ""@Name"": ""x"", + ""@Value"": ""y"", + ""@Type"": ""FindMe"" + } + ] +}"); + + var tokens = t.SelectTokens("$..[?(@.['@Type'] == 'FindMe')]").ToList(); + Assert.AreEqual(1, tokens.Count); + } + [Test] public void Equals_FloatWithInt() {