531 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 f0dcd5b434 Add support for DateOnly and TimeOnly (#2679) 2022-05-16 21:02:57 +08:00
James Newton-King 5803c7722a Update .NET 6 tests (#2678) 2022-05-16 17:13:53 +08:00
James Newton-KingandMatthew Steeples 71be691f92 Add copy constructor to JsonSerializerSettings (#2676)
Co-authored-by: Matthew Steeples <matthew@ledgerscope.com>
2022-05-16 09:34:38 +08:00
James Newton-King af6e7b9c13 Refactor type name multidimensional array support and add tests 2021-11-14 18:04:58 +13:00
James Newton-King f7e7bd05d9 Fix MaxDepth when used with ToObject inside of a JsonConverter (#2505) 2021-03-31 15:57:25 +13:00
James Newton-King 583eb12015 Fix missing error when deserializing JToken with a contract type mismatch (#2494) 2021-03-11 21:42:55 +13:00
James Newton-King b6dc05be5a Change MaxDepth default to 64 (#2473) 2021-02-21 15:13:51 +13:00
James Newton-King 7e77bbe1be Change JsonReader and JsonSerializer default max depth to 128 (#2462) 2021-01-31 15:57:06 +13:00
VereshchaginKonstantin 6795ca55f4 Fixed tests to work in Moscow, Russia UTC+3 timezone. (#2416) 2020-11-20 17:21:00 +13:00
James Newton-King a222c8b69c Update to net50 and fix warnings (#2424) 2020-11-20 16:35:24 +13:00
everfor 9be95e0f6a Do not treat ignored field as missing member when deserializing from overriden json constructor (#2224) 2019-11-30 11:16:00 +13:00
TylerBrinkley ff6f51b667 Added KebabCaseNamingStrategy 2019-10-05 19:49:18 +13:00
James Newton-King 7cc65dab82 Deserializing immutable set and dictionary create hash impls (#2159) 2019-09-13 08:54:57 +12:00
James Newton-King a213bac448 Fix deserialize via ctor with some existing collection types (#2151) 2019-09-08 20:46:20 +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 cdf10151d5 Update Newtonsoft.Json project to use nullable reference types (#1950) 2019-07-29 09:13:42 +12:00
James Newton-King b34a3ccca7 Add MissingMemberHandling to JsonObjectAttribute (#2050) 2019-04-21 14:40:36 +12:00
James Newton-King af963131ba Add JsonContract.InternalConverter (#2028) 2019-03-30 19:31:01 +13:00
James Newton-King 064cfafa91 Add JsonProperty.IsRequiredSpecified (#2027) 2019-03-30 18:04:21 +13:00
Mantas Audickas d75d54381e Fix memory leak when (de)serializing objects with enums (#1991) (#1992) 2019-03-10 14:37:53 -07:00
James Newton-King 03f7c0b859 Fix serializing types with struct ref properties (#1924) 2018-11-25 15:27:11 +13:00
James Newton-King 5633e17fc1 Fix JTokenReader not using DateTimeZoneHandling 2018-10-08 10:06:19 +13:00
Maksim Edinarkhov 9b98a11db2 fix for JObject.ToObject to respect DateTimeZoneHandling
https://github.com/JamesNK/Newtonsoft.Json/issues/1531
2018-10-08 10:06:19 +13:00
James Newton-King 71564ceb16 Fix tests on environments with different line endings (#1831) 2018-09-17 03:01:58 -07:00
James Newton-King 41c3a71e62 -Fixed unhelpful error message when deserializing badly formatted regex string 2018-02-17 21:07:07 +13:00
James Newton-King 73203653ba -Fixed unhelpful error when failing conversion in JsonReader.ReadAsInt32 2018-02-17 18:04:00 +13:00
James Newton-King 8ece2b31b9 -Fixed error when deserializing null value into ConcurrentDictionary 2018-01-20 17:23:38 +13:00
testfirstcoder e1dfefe00b serialization of a property which was defined in several interfaces (#1586) 2018-01-19 16:31:03 +13:00
gilad61 e5e901c6d0 Update initialDepth for error handling (#1550)
* Fix target depth when skipping over handled errors

Keep reading until the reader reaches the initial depth rather than initial depth + 1

* Fix the initialDepth when handling errors in lists

The initialDepth should be +1 when handling deserialization errors in lists and arrays in order to not skip subsequent items

* Add unit tests for dictionary error handling

Ignoring errors in dictionary object by completely removing the bad items from the dictionary
2017-12-26 08:47:41 +13:00
James Newton-King 2c9d9b9598 -Updated NuGet packages
-Fixed xunit warnings
2017-11-26 13:00:07 +13:00
James Newton-King 08ea72b72b Merge branch 'issue/1429' of https://github.com/paulirwin/Newtonsoft.Json into paulirwin-issue/1429 2017-11-08 14:52:07 +13:00
James Newton-King 48be21d4ce -Changed ISerializable serialization to require SerializableAttribute 2017-11-04 17:53:17 +13:00
Paul Irwin 7d44b61c32 Resolve #1429 for JsonObjectAttribute only: add NullValueHandling property 2017-11-02 10:55:08 -04:00
James Newton-King 4494e523d5 -Test 2017-10-22 17:48:28 +13:00
James Newton-King 4a74cf1b1a -Fixed deserializing with constructor and readonly collection property 2017-10-22 13:03:33 +13:00
James Newton-King 12f886ab99 -Test
-Minor refactor
2017-10-19 23:54:19 +13:00
James Newton-King 3eabd15a19 -Test 2017-10-16 19:39:21 +13:00
James Newton-King 64f6fd7b39 -Fixed TraceJsonWriter.WriteValue(object) writing value twice 2017-10-14 14:21:39 +13:00
James Newton-King 6057d9b831 -Fixed deserializing with a TraceWriter when the reader is not at the start 2017-10-06 19:11:34 +13:00
James Newton-King ab3315f1d5 -Added netstandard2.0 2017-10-01 23:11:30 +13:00
James Newton-King ffe53eb3bf -NuGet packages updated 2017-09-09 22:57:18 +12:00
James Newton-King bbf735583f -Test 2017-08-20 16:45:01 +12:00
James Newton-King 0a6792e4ca -Tests 2017-08-13 14:03:25 +12:00
James Newton-King 81b0e443ff -Tests 2017-08-13 10:44:07 +12:00
James Newton-King 6660601cdc -Tests 2017-07-29 17:48:43 +12:00
James Newton-King ebff7199e4 -Refactor tests 2017-07-23 17:58:21 +12:00
James Newton-King 36bcc55ee6 -Refactor tests 2017-07-23 17:01:48 +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 bbbddf0031 -Changed MemberConverter to be obsolete 2017-07-16 19:55:43 +12:00