Commit Graph
337 Commits
Author SHA1 Message Date
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 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
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 71564ceb16 Fix tests on environments with different line endings (#1831) 2018-09-17 03:01:58 -07: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 2c9d9b9598 -Updated NuGet packages
-Fixed xunit warnings
2017-11-26 13:00:07 +13:00
James Newton-King 3eabd15a19 -Test 2017-10-16 19:39:21 +13:00
James Newton-King ab3315f1d5 -Added netstandard2.0 2017-10-01 23:11:30 +13: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
Justin Van Patten 727e109eda Fixed deserializing ObservableCollection in .NET Core 2.0 (#1353) 2017-06-22 10:31:51 +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 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 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
James Newton-King 2e7b24e9b1 -Added support for TypeConverters to netstandard1.0+ 2017-01-19 17:43:07 +13:00
Jon Hanna 8956d3ca9c Fix issues that are variants of those #1182 (#1184)
* Catch excessive objects in json being parsed, even if following a comment.

* Include line info on excessive content for deserialisation.
2017-01-19 10:33:30 +13:00
Jon Hanna 9727996b1a Throw for CheckAdditionalContent when extra content is preceded by comments. (#1183)
Fixes #1182
2017-01-16 14:48:52 +13:00
Jon Hanna 218c25c859 Call nullable WriteValue overloads in TraceJsonWriter (#1139)
Fixes #1138
2017-01-07 20:25:46 +13:00
James Newton-King be8ca7a870 -Refactor 2016-11-27 13:58:21 +13:00
James Newton-King 5269ce81c0 -Fixed serializing protected override properties 2016-11-27 13:33:52 +13:00
Hugh Bellamy 123e8a54c5 Add a test for deserializing an IEnumerable with implicit conversion 2016-10-31 09:29:26 +00:00
James Newton-King 0721bd4dec -Fixed not erroring when deserializing incomplete JSON with a parameterized constructor 2016-10-24 14:20:59 +13:00
Pyit Phyo Aung 0115df6e39 Merge branch 'master' into Move-classes-to-files-under-TestObjects
# Conflicts:
#	Src/Newtonsoft.Json.Tests/Converters/IsoDateTimeConverterTests.cs
#	Src/Newtonsoft.Json.Tests/Linq/JObjectTests.cs
#	Src/Newtonsoft.Json.Tests/Schema/ExtensionsTests.cs
#	Src/Newtonsoft.Json.Tests/Serialization/DependencyInjectionTests.cs
#	Src/Newtonsoft.Json.Tests/Serialization/ExtensionDataTests.cs
#	Src/Newtonsoft.Json.Tests/Serialization/PopulateTests.cs
#	Src/Newtonsoft.Json.Tests/Serialization/TypeNameHandlingTests.cs
#	Src/Newtonsoft.Json.Tests/TestObjects/Money/Currency.cs
2016-10-13 14:49:15 +13:00
Pyit Phyo Aung 42d6225acd Move more classes to files under TestObjects 2016-10-13 12:29:26 +13:00
Pyit Phyo Aung f50f276b76 Clean up NETFX_CORE directive usage 2016-10-11 14:14:13 +13:00
James Newton-King d7125908ca -Merge 2016-09-17 17:15:35 +12:00