James Newton-King
07b513cb83
-Removed obsolete JsonConverter.GetSchema
...
-Removed obsolete OnDeserialized, OnDeserializing, OnSerialized, OnSerializing, OnError from JsonContract
-Removed obsolete JsonDictionaryContract.PropertyNameResolver
-Removed obsolete ConstructorParameters, OverrideConstructor, ParametrizedConstructor from JsonObjectContract
2017-01-22 22:28:22 +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
Jon Hanna
5648cb50f7
Don't write duplicate nulls to trace for byte[]
2016-12-30 15:20:09 +00:00
Jon Hanna
2abc38a0ad
Don't write duplicate nulls to trace for object or Uri
...
Fixes #1120
2016-12-30 15:06:52 +00:00
James Newton-King
2da811b021
-Added support for extension data names to NamingStrategy
...
-Added ProcessExtensionDataNames to NamingStrategy
2016-12-29 20:46:29 +13:00
James Newton-King
133bbc2d38
-Fixed roundtripping double.MaxValue and float.MaxValue as dictionary keys
2016-12-10 17:23:43 +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
James Newton-King
803403ae21
-Fixed deserializing generic only IList types with a constructor override
2016-11-05 23:21:34 +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
2d4b86b08e
Merge branch 'is-reference-bug' of https://github.com/TylerBrinkley/Newtonsoft.Json into TylerBrinkley-is-reference-bug
2016-10-25 16:09:36 +13:00
James Newton-King
0721bd4dec
-Fixed not erroring when deserializing incomplete JSON with a parameterized constructor
2016-10-24 14:20:59 +13:00
James Newton-King
570a7ca078
-Fixed deserializing a duplicate dictionary key from a parameterized constructor
2016-10-24 12:57:17 +13:00
James Newton-King
fb1acd0c83
Merge pull request #1051 from TylerBrinkley/nullable-struct-typename-bug
...
Stops including typename for nullable structs using TypeNameHandling.Auto
2016-10-19 10:15:15 +13:00
TylerBrinkley
53278cbe57
Added deserialization test and cleaned up the tests
2016-10-18 12:05:49 -05:00
TylerBrinkley
2a28dcc544
Stops including the typename for nullable structs using TypeNameHandling.Auto, fixes #1050
2016-10-18 11:34:43 -05: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
7388358e0a
-Clean up
2016-10-02 20:42:42 +13:00
James Newton-King
17f87f5321
-Build
2016-09-18 16:04:38 +12:00
James Newton-King
d7125908ca
-Merge
2016-09-17 17:15:35 +12:00
James Newton-King
ca27a0fc3a
-Added TypeNameAssemblyFormatHandling
...
-Added TypeNameAssemblyFormatHandling properties to JsonSerializer and JsonSerializerSettings
-Changed TypeNameAssemblyFormat properties on JsonSerializer and JsonSerializerSettings to obsolete
2016-09-17 15:57:03 +12:00
James Newton-King
4f8a22594f
-Added ISerializationBinder
...
-Added SerializationBinder properties to JsonSerializer and JsonSerializerSettings
-Changed Binder properties on JsonSerializer and JsonSerializerSettings to obsolete
2016-09-16 16:10:13 +12:00
TylerBrinkley
954057ad17
Allow readonly properties to serialize as references if they have corresponding creator parameters
2016-09-15 09:33:44 -05:00
James Newton-King
5fdfdff453
-Tests
...
-Fixed regression
2016-09-11 22:07:19 +12:00
James Newton-King
12b38ccb19
-Fixed error handling skipping reading the next object value
2016-09-11 19:37:44 +12:00
James Newton-King
68d160f3c6
-Added netstandard1.1 with BigInteger support
2016-09-10 23:54:44 +12:00
James Newton-King
c42d46fb4c
-Improved Autofac sample to resolve contract from Autofac
2016-08-09 21:35:30 +12:00
James Newton-King
d6277bf5d8
-Tests
2016-08-09 18:58:22 +12:00
James Newton-King
ba52ef1b85
-Merge
2016-08-09 18:41:12 +12:00
James Newton-King
a8a9429b47
-DefaultSerializationBinder WIP
2016-08-09 18:30:17 +12:00
TylerBrinkley
9603e3fe76
Made test not available in PORTABLE or PORTABLE40.
...
Fixed visual studio's auto update of Net35 Test project.
2016-08-08 10:15:42 -05:00
TylerBrinkley
a771eab395
Fixed build on Net20 Tests.
...
Didn't realize HashSet wasn't available in Net20.
2016-08-08 09:36:15 -05:00
TylerBrinkley
4605894b6b
Addresses #926 and #949
2016-08-08 09:18:34 -05:00
James Newton-King
dada8ea0e3
-Fixed deserializing DataTable with error handling
2016-07-19 18:46:33 +12:00
James Newton-King
0546ded719
-Fixed using a TraceWriter with nullable bytes
2016-07-18 21:38:45 +12:00
James Newton-King
172f2122d4
-Tests
2016-07-05 14:01:02 +12:00
James Newton-King
52fbb613d7
-Refactored naming strategy to be an abstract base class
2016-05-28 23:56:58 +12:00
James Newton-King
d453089b58
Merge branch 'master' into naming-strategy
2016-05-28 10:03:56 +12:00
Taylor Wood
07b72a5637
Fix spelling of "parameterized"
2016-05-24 11:41:40 -05:00
James Newton-King
e8f4a3b651
-Updated build to use .NET CLI
...
-.NET Standard 1.0 included in package
2016-05-14 13:43:43 +12:00
James Newton-King
fe001bd5e6
-Fixed incorrect check when looking for non-default constructors on collections
2016-04-29 18:30:38 +12:00
James Newton-King
86c2f80311
-Fixed JTokenWriter sometimes losing types when writing JToken
2016-04-29 16:21:41 +12:00
James Newton-King
55c87a0e73
-Fixed converting XElements without namespace attribute to JSON
2016-04-10 11:36:21 +12:00
James Newton-King
3674af9119
-Added INamingStrategy
...
-Added CamelCaseNamingStrategy
-Added NamingStrategyType and NamingStrategyParameters to JsonPropertyAttribute
-Added NamingStrategyType and NamingStrategyParameters to JsonContainerAttribute
2016-03-20 19:13:44 +13:00
timotei
ce480a21f4
Properly handle ISet on Portable40 config
...
Up until now ISet members would not be
properly deserialized, getting an exception
that ISet cannot be instantiated.
2016-02-28 22:11:54 +02:00