diff --git a/Src/Newtonsoft.Json/Linq/JToken.cs b/Src/Newtonsoft.Json/Linq/JToken.cs index 5b75ba0b..8c12ffa4 100644 --- a/Src/Newtonsoft.Json/Linq/JToken.cs +++ b/Src/Newtonsoft.Json/Linq/JToken.cs @@ -1907,7 +1907,7 @@ namespace Newtonsoft.Json.Linq } /// - /// Selects the token that matches the object path. + /// Selects the token that matches the JSON path. /// /// /// The object path from the current to the @@ -1922,7 +1922,7 @@ namespace Newtonsoft.Json.Linq } /// - /// Selects the token that matches the object path. + /// Selects the token that matches the JSON path. /// /// /// The object path from the current to the @@ -1944,11 +1944,22 @@ namespace Newtonsoft.Json.Linq return result.SingleOrDefault(); } + /// + /// Selects tokens that match the JSON path. + /// + /// + /// public IEnumerable SelectTokens(string path) { return SelectTokens(path, false); } + /// + /// Selects tokens that match the JSON path. + /// + /// + /// + /// public IEnumerable SelectTokens(string path, bool errorWhenNoMatch) { JPath p = new JPath(path);