Commit Graph
523 Commits
Author SHA1 Message Date
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
James Newton-King adca3fa96f -Fixed allowing static Specified properties 2017-06-26 19:58:15 +12:00
James Newton-King fdbc400ceb -Added IgnoreShouldSerializeMembers to DefaultContractResolver
-Tests
2017-06-25 23:05:05 +12:00
Justin Van Patten 727e109eda Fixed deserializing ObservableCollection in .NET Core 2.0 (#1353) 2017-06-22 10:31:51 +12:00
James Newton-King e27f7cd9cb -Build 2017-06-18 12:42:39 +12:00
James Newton-King 928eea8340 -Refactor JsonSerializer.Binder to not create wrapper when unneeded 2017-06-18 12:36:27 +12:00
James Newton-King 64a092ee64 -Refactor 2017-06-10 15:36:37 +12:00
shahabhijeet 43e9bd3bed Fix Issue 1340. Bring back default behavior for JsonSerializer.Binder if not set. Added tests. 2017-06-09 01:00:53 -07:00
James Newton-King 92653ae3f2 -Fixed MemoryTraceWriter thread safety 2017-04-30 17:06:31 +12:00