302 Commits
Author SHA1 Message Date
James Newton-KingandSneha Shivakumar b13717a1c1 Add JsonCloneSettings to disable copy annotations (#2757)
Co-authored-by: Sneha Shivakumar <snshivakumar@microsoft.com>
2022-11-14 08:55:47 +08:00
James Newton-King 5803c7722a Update .NET 6 tests (#2678) 2022-05-16 17:13:53 +08:00
James Newton-King bf2e2a78e8 Add .NET 6 target (#2677) 2022-05-16 16:12:52 +08:00
James Newton-King e44ab3348f Fix merging enumerable content and validate content (#2531) 2021-05-15 13:45:00 +12:00
James Newton-King 15525f1c44 Fix JsonWriter.WriteToken to allow null with string token (#2472) 2021-02-21 13:09:54 +13:00
James Newton-King 42139ea6cd Add JsonSelectSettings and regex timeout 2021-01-17 18:23:19 +13:00
serpentfabric 95a6eb3ac5 jpath regex timeout support added for a single regex expression, global umbrella for all regex calls, and support for allowing regex calls to get compiled if necessary
require users to set a global cancellation token themselves, to avoid a potential unmanaged memory leak, which cleans up the code a bunch and fixes the failing tests

fix tests so cached regex's don't cause one test to fail using prior tests timeout...

handle the global timeout of multitoken regex internally and test for it
2021-01-17 18:23:19 +13:00
James Newton-King ff5ffb2832 Copy annotations when cloning elements (#2442) 2021-01-01 19:25:57 +13:00
James Newton-King 2ec997d3a7 Fix JToken nullable support 2019-08-22 14:09:18 +12:00
James Newton-King e82421145b Add test with escaped JSON Path (#2138) 2019-08-19 13:35:19 +12:00
James Newton-King 5eac02a797 Run unit tests on .NET Core 3.0 and fix Enumerable.Empty (#2137) 2019-08-19 12:57:09 +12:00
James Newton-King 84b5c15eab Clean up merge changes 2019-08-18 18:07:53 +12:00
iRumba da0f0d8dd1 Fixed merging with self bug. 2019-08-18 18:07:53 +12:00
James Newton-King cdf10151d5 Update Newtonsoft.Json project to use nullable reference types (#1950) 2019-07-29 09:13:42 +12:00
James Newton-King 34ff1a6728 Add test for DuplicatePropertyNameHandling.Replace (#2026) 2019-03-30 17:41:29 +13:00
James Newton-King 88dae52165 Clean up DuplicatePropertyNameHandling feature 2018-11-24 21:25:20 +13:00
James Newton-King faaa23eb9e Clean up test warnings (#1882) 2018-10-15 13:41:57 +13:00
James Newton-King 3d2e9c13ad Not equals test 2018-10-07 16:22:13 +13:00
James Newton-King 416a96bf4e Simplify strict equals 2018-10-07 16:22:13 +13:00
WillSullivan 3a9dfebc2d Strict operator support added 2018-10-07 16:22:13 +13:00
James Newton-King 306e695f69 Add test for quote in path (#1848) 2018-09-22 08:03:41 -07:00
James Newton-King 9fe2448320 Add JObject.Property overload with a StringComparison and JsonMergeSettings.PropertyNameComparison (#1843) 2018-09-20 00:21:16 -07:00
Joseph Musser 4257e63394 ‘Annoucing’ → ‘Announcing’ (#1718) 2018-05-24 21:27:00 +12:00
James Newton-King c72f785b9c -Changed DataContractAttribute on collections back to array serialization
-Fixed JObject.GetPropertyOwner to return value
-Fixed JPropertyDescriptor GetValue and SetValue to return null for null owner
2018-03-12 15:43:28 +13:00
James Newton-King 6d3b5077e2 -Refactor regex in JSON Path 2018-02-11 14:42:13 +13:00
James Newton-King 7f3292f6cb Merge branch 'feature/json-path-filter-using-regex' of https://github.com/andre-n/Newtonsoft.Json into andre-n-feature/json-path-filter-using-regex 2018-02-11 12:28:05 +13:00
andre-n 1876b1bfdf feature: implement regex match operator for JsonPath queries. Syntax is compatibe with Jayway implementation 2018-02-10 16:04:35 +01:00
James Newton-King c90e6e871a -Changed enum serialization in dictionary keys to use EnumMemberAttribute 2018-01-31 15:14:03 +13:00
James Newton-King 6360cc4c4b -Fixed escaping special characters in generated JSONPaths
-Fixed reading escaped special characters in JSONPaths
2018-01-27 18:39:44 +13:00
James Newton-King d0d01f2a36 -Fixed merging null string values 2017-12-04 18:53:50 +13:00
James Newton-King 977884d779 -Test 2017-11-29 17:02:25 +13:00
James Newton-King 2c9d9b9598 -Updated NuGet packages
-Fixed xunit warnings
2017-11-26 13:00:07 +13:00
James Newton-King a138852994 -Changed JObject.ContainsKey to public 2017-11-26 10:13:13 +13:00
James Newton-King ab3315f1d5 -Added netstandard2.0 2017-10-01 23:11:30 +13:00
James Newton-King 98366a4b88 -Added INotifyPropertyChanging to netstandard1.3 build 2017-08-20 16:56:30 +12:00
James Newton-King 403470d59a -Fixed not erroring when reading undefined for nullable long 2017-07-23 13:50:49 +12:00
James Newton-King ad1a13728a -Fixed JValue.CompareTo with number and string values 2017-07-22 13:41:14 +12:00
Minh Nguyen 865b2076c2 feature: implement new regex equals operator for JsonPath Query expression. Example: Blah[?( @.name =~'/hi/i' )] 2017-07-20 18:03:55 +10:00
James Newton-King c33b257f18 -Tests 2017-07-16 10:29:34 +12:00
Nathan Mascitelli 5229208ce5 Fix test framework restrictions 2017-07-14 08:18:33 -04:00
Nathan Mascitelli df82bdce1a Add HAVE_ICONVERTIBLE to NETSTANDARD1_3
Also added unit test.
2017-07-13 17:47:27 -04:00
yadoer b62c0286c4 Update Compare method@JValue.cs (#1310)
For JTokenType.Float, we should add the comparison for decimal type.
2017-05-28 15:18:29 +12:00
James Newton-King 1535268ab8 -Fixed JToken.Load not reading past comment when CommentHandling is Ignore
-Fix JsonReader.ReadAsDecimal with JValue and BigInteger value
2017-05-13 19:14:16 +12:00
James Newton-King 515fee0b52 -Test 2017-05-09 21:36:30 +12:00
Adrien Siffermann 35f7f505e2 Fix RootFilter to proper return an IEnumerable containing the root JToken rather than the root JToken itself as an IEnumerable 2017-05-02 23:54:56 +02:00
James Newton-King b3d514b617 -Fixed JSONPath recursive descent queries 2017-04-26 11:09:15 +12:00
James Newton-King d56b2fa55b -Tests 2017-04-08 16:22:13 +12:00
James Newton-King aa5f28c097 -Added Portable40 back 2017-04-02 10:24:09 +12:00
James Newton-King 39c03ea0e9 -Test 2017-03-23 21:08:15 +13:00
James Newton-King 68533cdc19 -Additional JToken line info settings fixes 2017-03-23 21:04:04 +13:00