-Added DataSetConverter, DataTableConverter

-Added JPath and SelectToken to JToken
-Fixed schema id not being written for collections
-Fixed TimeSpan serialization on Compact Framework
-Fixed unicode line break string encoding
This commit is contained in:
JamesNK
2009-10-14 02:40:20 +00:00
parent b313445e01
commit b4b3905714
23 changed files with 1053 additions and 10 deletions
+11
View File
@@ -1095,5 +1095,16 @@ namespace Newtonsoft.Json.Linq
{
get { return _linePosition ?? 0; }
}
public JToken SelectToken(string path)
{
return SelectToken(path, false);
}
public JToken SelectToken(string path, bool errorWhenNoMatch)
{
JPath p = new JPath(path);
return p.Evaluate(this, errorWhenNoMatch);
}
}
}