Commit Graph
509 Commits
Author SHA1 Message Date
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
James Newton-King 8eecadd0ef -Fixed serializing ConcurrentDictionary in .NET Core 2.0
-Fixed serializing ConcurrentStack/Queue/Bag
2017-04-26 15:23:28 +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 d145eb36b0 Revert "-Removed binary serialization support from netstandard1.3"
This reverts commit 25de5022e4.
2017-04-01 22:38:45 +13:00
James Newton-King f88ae288bc -Fixed handling error when reading metadata property 2017-04-01 16:49:33 +13:00
James Newton-King 33cf71dc74 -Fixed serializing IListSource implementations 2017-04-01 12:44:17 +13:00
James Newton-King 25de5022e4 -Removed binary serialization support from netstandard1.3
-Changed packages to use NETStandard.Libary 1.6.0
2017-03-27 21:34:00 +13:00
James Newton-King bed740f76e -Fixed error attempting to deserialize into read-only collections from non-default constructor 2017-03-05 16:52:58 +13:00
James Newton-King ba514c4610 -Cleaned up preprocessor symbols 2017-03-05 15:12:52 +13:00
James Newton-King febdb8188b -Changed netstandard1.1 to netstandard1.3
-Added support for ISerializable interface to netstandard1.3+
-Added support for SerializableAttribute and NonSerializedAttribute to netstandard1.3+
2017-03-05 14:29:24 +13:00
James Newton-King b5f1b83191 -Added improved support for deserializing immutable structs 2017-02-26 19:11:45 +13:00
James Newton-King 354249822a -Marked BSON classes as obsolete 2017-02-19 20:39:23 +13:00
James Newton-King 7a7027a779 -Obsoleted FormatterAssemblyStyle in non-full .NET assemblies
-Tests
2017-02-18 19:15:38 +13:00
James Newton-King cc6d99aa60 Migrate project.json to csproj (#1212) 2017-02-13 23:46:43 +13:00