-Fixed error with whitespace only JSONPath
-Fixed property query path that starts with $ -Fixed array query path with open brace after $
This commit is contained in:
@@ -141,6 +141,14 @@ namespace Newtonsoft.Json.Tests.Linq.JsonPath
|
||||
Assert.AreEqual(null, ((ArrayIndexFilter)path.Filters[0]).Index);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void RootArrayNoDot()
|
||||
{
|
||||
JPath path = new JPath("$[1]");
|
||||
Assert.AreEqual(1, path.Filters.Count);
|
||||
Assert.AreEqual(1, ((ArrayIndexFilter)path.Filters[0]).Index);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void WildcardArray()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user